<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://rxtx.qbang.org/wiki/skins/common/feed.css?207"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Rxtx - User contributions [en]</title>
		<link>http://rxtx.qbang.org/wiki/index.php/Special:Contributions/Moescs</link>
		<description>From Rxtx</description>
		<language>en</language>
		<generator>MediaWiki 1.15.4</generator>
		<lastBuildDate>Fri, 14 Aug 2026 15:07:58 GMT</lastBuildDate>
		<item>
			<title>Wrapping RXTX in an Eclipse Plugin</title>
			<link>http://rxtx.qbang.org/wiki/index.php/Wrapping_RXTX_in_an_Eclipse_Plugin</link>
			<description>&lt;p&gt;Moescs:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This would be done to simplify the development of [[http://www.eclipse.org/ Eclipse]] Plug-ins and RCP applications that use rxtx.&lt;br /&gt;
&lt;br /&gt;
Wrapping this code in a plug-in gives the following advantages:&lt;br /&gt;
*A link to the javadoc can be associated with the jar, so users of the newly created plug-in can easily pull up the javadoc inside eclipse.&lt;br /&gt;
*The native libraries can all be associated with this jar, so the newly created plug-in can support multiple targets OS &amp;amp; CPU architectures.&lt;br /&gt;
*Associating the javadoc and grabbing the right native library only has to be done once for all projects using rxtx.&lt;br /&gt;
*You don't have to modify the JRE of any machine. Eclipse will package the jar and corresponding native libraries in your RCP/plug-in application. Upon startup, it will select the appropriate .dll or .so file to unpack and add the .jar file to the classpath.&lt;br /&gt;
&lt;br /&gt;
Please note that I've used my RXTX plugin for Mac OS X (ppc) and Windows (x86) only. I haven't tested this configuration on the other targets setup in this tutorial.&lt;br /&gt;
&lt;br /&gt;
==Procedure (Using Eclipse 3.3 - Europa)==&lt;br /&gt;
*In the New Project Wizard, select Plug-in Development-&amp;gt;Plug-in from existing JAR archives and click Next.&lt;br /&gt;
*Use the Add External... button to add the downloaded RXTXcomm.jar file to include in the plugin and click Next.&lt;br /&gt;
*Fill in the Plug-in Project Properties and click Finish. '''Make sure &amp;quot;Unzip the JAR archives into the project&amp;quot; is unchecked''' or you will not be able to associate the javadoc. Otherwise, you can do what you want. Here's an example:&lt;br /&gt;
**Project Name: rxtx plugin&lt;br /&gt;
**Plug-in ID: org.rxtx&lt;br /&gt;
**Plug-in Version: (insert the version of rxtx that your are wrapping)&lt;br /&gt;
**Plug-in Name: rxtx Plug-in&lt;br /&gt;
**Plug-in Provider: rxtx.org&lt;br /&gt;
*You will now see your new plugin project in the Package Explorer. Notice that if you open the manifest, META-INF-&amp;gt;MANIFEST.MF, in the editor and switch to the Runtime tab, you will find gnu.io in the Exported Packages (and also RXTXcomm.jar in the Classpath). This is what lets you use the java libraries when you include this new plugin in your dependency list.&lt;br /&gt;
*Create a new folder in your project called nativelib (or whatever you want).&lt;br /&gt;
*Import all the native libraries (.dll, .so, etc.) from your rxtx download under this folder.&lt;br /&gt;
*Add the following [http://www.osgi.org/ OSGI] directive to the Manifest to tell the OSGI framework how to select the appropriate native libs at startup (MANIFEST.MF tab of the MANIFEST editor).&lt;br /&gt;
**Make sure to have single spaces in the following locations: After the Bundle-Nativecode: directive, on all line continuations, and on all blank lines.&lt;br /&gt;
**Make sure to adjust the folder structure to your folder structure.&lt;br /&gt;
**Make sure to change the file names to the appropriate ones (i.e. the files that have the version number in them might change).&lt;br /&gt;
**Make sure to adjust the native lib references to the ones that you actually have.&lt;br /&gt;
**''Please note that I'm not sure about the OSGI processor name, Sparc64.''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Bundle-NativeCode: &lt;br /&gt;
 nativelib/Linux/i686-unknown-linux-gnu/librxtxParallel.so;&lt;br /&gt;
 nativelib/Linux/i686-unknown-linux-gnu/librxtxSerial.so;&lt;br /&gt;
 osname=Linux; processor=x86,&lt;br /&gt;
 &lt;br /&gt;
 nativelib/Linux/ia64-unknown-linux-gnu/librxtxSerial.so;&lt;br /&gt;
 osname=Linux; processor=ia64,&lt;br /&gt;
 &lt;br /&gt;
 nativelib/Linux/x86_64-unknown-linux-gnu/librxtxSerial.so;&lt;br /&gt;
 osname=Linux; processor=x86-64,&lt;br /&gt;
 &lt;br /&gt;
  &lt;br /&gt;
 nativelib/Mac_OS_X/librxtxSerial.jnilib;&lt;br /&gt;
 osname=Mac OS X; processor=x86; processor=PowerPC,&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 nativelib/Solaris/sparc-solaris/sparc32-sun-solaris2.8/librxtxSerial-2.1-7.so;&lt;br /&gt;
 nativelib/Solaris/sparc-solaris/sparc32-sun-solaris2.8/librxtxSerial.so;&lt;br /&gt;
 osname=Solaris; processor=Sparc,&lt;br /&gt;
 &lt;br /&gt;
 nativelib/Solaris/sparc-solaris/sparc64-sun-solaris2.8/librxtxSerial-2.1-7.so;&lt;br /&gt;
 nativelib/Solaris/sparc-solaris/sparc64-sun-solaris2.8/librxtxSerial.so;&lt;br /&gt;
 osname=Solaris; processor=Sparc64,&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 nativelib/Windows/i368-mingw32/rxtxParallel.dll;&lt;br /&gt;
 nativelib/Windows/i368-mingw32/rxtxSerial.dll;&lt;br /&gt;
 osname=Win32; processor=x86&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Right click on the .jar file (Referenced Libraries-&amp;gt;RXTXComm.jar and select Properties&lt;br /&gt;
*Select Javadoc Location and enter the link to this wiki's javadoc (i.e. http://users.frii.com/jarvi/rxtx/doc/). Use the Validate... button to make sure you have it right (Make sure index.html is not at the end of your link). Click Apply and then OK.&lt;br /&gt;
&lt;br /&gt;
You're done! Now you can use this plugin in your other projects as long as it remains open in your project directory. If you like, you can use the Export Wizard in the Overview tab of the manifest editor to distribute this. You can even create a feature project and include this plug-in if you want to distribute via an eclipse update site. The feature project is nice in any case from a usability standpoint because it allows you to specify all of the target OS's and architectures (CPU's) this supports.&lt;/div&gt;</description>
			<pubDate>Mon, 29 Oct 2007 20:57:42 GMT</pubDate>			<dc:creator>Moescs</dc:creator>			<comments>http://rxtx.qbang.org/wiki/index.php/Talk:Wrapping_RXTX_in_an_Eclipse_Plugin</comments>		</item>
		<item>
			<title>Using RXTX</title>
			<link>http://rxtx.qbang.org/wiki/index.php/Using_RXTX</link>
			<description>&lt;p&gt;Moescs:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is for general content regarding the use of rxtx.  Feel free to add your own content.&lt;br /&gt;
&lt;br /&gt;
*[[Using RXTX In Eclipse]]&lt;br /&gt;
*[[Wrapping RXTX in an Eclipse Plugin]]&lt;br /&gt;
*[[Using RXTX In NetBeans]]&lt;br /&gt;
*[[Deploying JAVA with RXTX]]&lt;br /&gt;
&lt;br /&gt;
I wrote an app several months ago using javax.comm on windows. Sun has left me high and dry. rxtx help!&lt;br /&gt;
&lt;br /&gt;
*download [ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7-bins-r2.zip]&lt;br /&gt;
*unzip it&lt;br /&gt;
*copy rxtxSerial.dll into your c:\program files\java\jre-version\bin dir&lt;br /&gt;
*copy RXTXcomm.jar into your c:\program files\java\jre-version\lib\ext dir&lt;br /&gt;
*change all references from 'javax.comm' to 'gnu.io'&lt;br /&gt;
*recompile&lt;br /&gt;
*test&lt;br /&gt;
&lt;br /&gt;
  Dido Sun left me Hi and dry. After 30+ hours wasting my life on&lt;br /&gt;
 javax.comm it is the RXTXcomm 2.1.7 that really worked the first &lt;br /&gt;
 time&lt;br /&gt;
&lt;br /&gt;
  REMEMBER !! for the newbies&lt;br /&gt;
   Change the all occurences of the import javax.comm.*; in  &lt;br /&gt;
    MyApps.java&lt;br /&gt;
   TO import gnu.io.*;&lt;br /&gt;
  I did not even have to recompile as suggested the rxtxSerial.dll&lt;br /&gt;
&lt;br /&gt;
  a job well done for the rxtx.org team.&lt;/div&gt;</description>
			<pubDate>Mon, 29 Oct 2007 20:55:30 GMT</pubDate>			<dc:creator>Moescs</dc:creator>			<comments>http://rxtx.qbang.org/wiki/index.php/Talk:Using_RXTX</comments>		</item>
		<item>
			<title>Wrapping RXTX In an Eclipse Plugin</title>
			<link>http://rxtx.qbang.org/wiki/index.php/Wrapping_RXTX_In_an_Eclipse_Plugin</link>
			<description>&lt;p&gt;Moescs:&amp;#32;Wrapping RXTX In an Eclipse Plugin moved to Wrapping RXTX in an Eclipse Plugin: wrong capitalization&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Wrapping RXTX in an Eclipse Plugin]]&lt;/div&gt;</description>
			<pubDate>Mon, 29 Oct 2007 20:55:11 GMT</pubDate>			<dc:creator>Moescs</dc:creator>			<comments>http://rxtx.qbang.org/wiki/index.php/Talk:Wrapping_RXTX_In_an_Eclipse_Plugin</comments>		</item>
		<item>
			<title>Wrapping RXTX in an Eclipse Plugin</title>
			<link>http://rxtx.qbang.org/wiki/index.php/Wrapping_RXTX_in_an_Eclipse_Plugin</link>
			<description>&lt;p&gt;Moescs:&amp;#32;Wrapping RXTX In an Eclipse Plugin moved to Wrapping RXTX in an Eclipse Plugin: wrong capitalization&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This would be done to simplify the development of [[http://www.eclipse.org/ Eclipse]] Plug-ins and RCP applications that use rxtx.&lt;br /&gt;
&lt;br /&gt;
Wrapping this code in a plug-in gives the following advantages:&lt;br /&gt;
*A link to the javadoc can be associated with the jar, so users of the newly created plug-in can easily pull up the javadoc inside eclipse.&lt;br /&gt;
*The native libraries can all be associated with this jar, so the newly created plug-in can support multiple targets OS &amp;amp; CPU architectures.&lt;br /&gt;
*Associating the javadoc and grabbing the right native library only has to be done once for all projects using rxtx.&lt;br /&gt;
*You don't have to modify the JRE of any machine. Eclipse will package the jar and corresponding native libraries in your RCP/plug-in application. Upon startup, it will select the appropriate .dll or .so file to unpack and add the .jar file to the classpath.&lt;br /&gt;
&lt;br /&gt;
==Procedure (Using Eclipse 3.3 - Europa)==&lt;br /&gt;
*In the New Project Wizard, select Plug-in Development-&amp;gt;Plug-in from existing JAR archives and click Next.&lt;br /&gt;
*Use the Add External... button to add the downloaded RXTXcomm.jar file to include in the plugin and click Next.&lt;br /&gt;
*Fill in the Plug-in Project Properties and click Finish. '''Make sure &amp;quot;Unzip the JAR archives into the project&amp;quot; is unchecked''' or you will not be able to associate the javadoc. Otherwise, you can do what you want. Here's an example:&lt;br /&gt;
**Project Name: rxtx plugin&lt;br /&gt;
**Plug-in ID: org.rxtx&lt;br /&gt;
**Plug-in Version: (insert the version of rxtx that your are wrapping)&lt;br /&gt;
**Plug-in Name: rxtx Plug-in&lt;br /&gt;
**Plug-in Provider: rxtx.org&lt;br /&gt;
*You will now see your new plugin project in the Package Explorer. Notice that if you open the manifest, META-INF-&amp;gt;MANIFEST.MF, in the editor and switch to the Runtime tab, you will find gnu.io in the Exported Packages (and also RXTXcomm.jar in the Classpath). This is what lets you use the java libraries when you include this new plugin in your dependency list.&lt;br /&gt;
*Create a new folder in your project called nativelib (or whatever you want).&lt;br /&gt;
*Import all the native libraries (.dll, .so, etc.) from your rxtx download under this folder.&lt;br /&gt;
*Add the following [http://www.osgi.org/ OSGI] directive to the Manifest to tell the OSGI framework how to select the appropriate native libs at startup (MANIFEST.MF tab of the MANIFEST editor).&lt;br /&gt;
**Make sure to have single spaces in the following locations: After the Bundle-Nativecode: directive, on all line continuations, and on all blank lines.&lt;br /&gt;
**Make sure to adjust the folder structure to your folder structure.&lt;br /&gt;
**Make sure to change the file names to the appropriate ones (i.e. the files that have the version number in them might change).&lt;br /&gt;
**Make sure to adjust the native lib references to the ones that you actually have.&lt;br /&gt;
**''Please note that I'm not sure about the OSGI processor name, Sparc64.''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Bundle-NativeCode: &lt;br /&gt;
 nativelib/Linux/i686-unknown-linux-gnu/librxtxParallel.so;&lt;br /&gt;
 nativelib/Linux/i686-unknown-linux-gnu/librxtxSerial.so;&lt;br /&gt;
 osname=Linux; processor=x86,&lt;br /&gt;
 &lt;br /&gt;
 nativelib/Linux/ia64-unknown-linux-gnu/librxtxSerial.so;&lt;br /&gt;
 osname=Linux; processor=ia64,&lt;br /&gt;
 &lt;br /&gt;
 nativelib/Linux/x86_64-unknown-linux-gnu/librxtxSerial.so;&lt;br /&gt;
 osname=Linux; processor=x86-64,&lt;br /&gt;
 &lt;br /&gt;
  &lt;br /&gt;
 nativelib/Mac_OS_X/librxtxSerial.jnilib;&lt;br /&gt;
 osname=Mac OS X; processor=x86; processor=PowerPC,&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 nativelib/Solaris/sparc-solaris/sparc32-sun-solaris2.8/librxtxSerial-2.1-7.so;&lt;br /&gt;
 nativelib/Solaris/sparc-solaris/sparc32-sun-solaris2.8/librxtxSerial.so;&lt;br /&gt;
 osname=Solaris; processor=Sparc,&lt;br /&gt;
 &lt;br /&gt;
 nativelib/Solaris/sparc-solaris/sparc64-sun-solaris2.8/librxtxSerial-2.1-7.so;&lt;br /&gt;
 nativelib/Solaris/sparc-solaris/sparc64-sun-solaris2.8/librxtxSerial.so;&lt;br /&gt;
 osname=Solaris; processor=Sparc64,&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 nativelib/Windows/i368-mingw32/rxtxParallel.dll;&lt;br /&gt;
 nativelib/Windows/i368-mingw32/rxtxSerial.dll;&lt;br /&gt;
 osname=Win32; processor=x86&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Right click on the .jar file (Referenced Libraries-&amp;gt;RXTXComm.jar and select Properties&lt;br /&gt;
*Select Javadoc Location and enter the link to this wiki's javadoc (i.e. http://users.frii.com/jarvi/rxtx/doc/). Use the Validate... button to make sure you have it right (Make sure index.html is not at the end of your link). Click Apply and then OK.&lt;br /&gt;
&lt;br /&gt;
You're done! Now you can use this plugin in your other projects as long as it remains open in your project directory. If you like, you can use the Export Wizard in the Overview tab of the manifest editor to distribute this. You can even create a feature project and include this plug-in if you want to distribute via an eclipse update site. The feature project is nice in any case from a usability standpoint because it allows you to specify all of the target OS's and architectures (CPU's) this supports.&lt;/div&gt;</description>
			<pubDate>Mon, 29 Oct 2007 20:55:11 GMT</pubDate>			<dc:creator>Moescs</dc:creator>			<comments>http://rxtx.qbang.org/wiki/index.php/Talk:Wrapping_RXTX_in_an_Eclipse_Plugin</comments>		</item>
		<item>
			<title>Wrapping RXTX in an Eclipse Plugin</title>
			<link>http://rxtx.qbang.org/wiki/index.php/Wrapping_RXTX_in_an_Eclipse_Plugin</link>
			<description>&lt;p&gt;Moescs:&amp;#32;/* Procedure (Using Eclipse 3.3 - Europa) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This would be done to simplify the development of [[http://www.eclipse.org/ Eclipse]] Plug-ins and RCP applications that use rxtx.&lt;br /&gt;
&lt;br /&gt;
Wrapping this code in a plug-in gives the following advantages:&lt;br /&gt;
*A link to the javadoc can be associated with the jar, so users of the newly created plug-in can easily pull up the javadoc inside eclipse.&lt;br /&gt;
*The native libraries can all be associated with this jar, so the newly created plug-in can support multiple targets OS &amp;amp; CPU architectures.&lt;br /&gt;
*Associating the javadoc and grabbing the right native library only has to be done once for all projects using rxtx.&lt;br /&gt;
*You don't have to modify the JRE of any machine. Eclipse will package the jar and corresponding native libraries in your RCP/plug-in application. Upon startup, it will select the appropriate .dll or .so file to unpack and add the .jar file to the classpath.&lt;br /&gt;
&lt;br /&gt;
==Procedure (Using Eclipse 3.3 - Europa)==&lt;br /&gt;
*In the New Project Wizard, select Plug-in Development-&amp;gt;Plug-in from existing JAR archives and click Next.&lt;br /&gt;
*Use the Add External... button to add the downloaded RXTXcomm.jar file to include in the plugin and click Next.&lt;br /&gt;
*Fill in the Plug-in Project Properties and click Finish. '''Make sure &amp;quot;Unzip the JAR archives into the project&amp;quot; is unchecked''' or you will not be able to associate the javadoc. Otherwise, you can do what you want. Here's an example:&lt;br /&gt;
**Project Name: rxtx plugin&lt;br /&gt;
**Plug-in ID: org.rxtx&lt;br /&gt;
**Plug-in Version: (insert the version of rxtx that your are wrapping)&lt;br /&gt;
**Plug-in Name: rxtx Plug-in&lt;br /&gt;
**Plug-in Provider: rxtx.org&lt;br /&gt;
*You will now see your new plugin project in the Package Explorer. Notice that if you open the manifest, META-INF-&amp;gt;MANIFEST.MF, in the editor and switch to the Runtime tab, you will find gnu.io in the Exported Packages (and also RXTXcomm.jar in the Classpath). This is what lets you use the java libraries when you include this new plugin in your dependency list.&lt;br /&gt;
*Create a new folder in your project called nativelib (or whatever you want).&lt;br /&gt;
*Import all the native libraries (.dll, .so, etc.) from your rxtx download under this folder.&lt;br /&gt;
*Add the following [http://www.osgi.org/ OSGI] directive to the Manifest to tell the OSGI framework how to select the appropriate native libs at startup (MANIFEST.MF tab of the MANIFEST editor).&lt;br /&gt;
**Make sure to have single spaces in the following locations: After the Bundle-Nativecode: directive, on all line continuations, and on all blank lines.&lt;br /&gt;
**Make sure to adjust the folder structure to your folder structure.&lt;br /&gt;
**Make sure to change the file names to the appropriate ones (i.e. the files that have the version number in them might change).&lt;br /&gt;
**Make sure to adjust the native lib references to the ones that you actually have.&lt;br /&gt;
**''Please note that I'm not sure about the OSGI processor name, Sparc64.''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Bundle-NativeCode: &lt;br /&gt;
 nativelib/Linux/i686-unknown-linux-gnu/librxtxParallel.so;&lt;br /&gt;
 nativelib/Linux/i686-unknown-linux-gnu/librxtxSerial.so;&lt;br /&gt;
 osname=Linux; processor=x86,&lt;br /&gt;
 &lt;br /&gt;
 nativelib/Linux/ia64-unknown-linux-gnu/librxtxSerial.so;&lt;br /&gt;
 osname=Linux; processor=ia64,&lt;br /&gt;
 &lt;br /&gt;
 nativelib/Linux/x86_64-unknown-linux-gnu/librxtxSerial.so;&lt;br /&gt;
 osname=Linux; processor=x86-64,&lt;br /&gt;
 &lt;br /&gt;
  &lt;br /&gt;
 nativelib/Mac_OS_X/librxtxSerial.jnilib;&lt;br /&gt;
 osname=Mac OS X; processor=x86; processor=PowerPC,&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 nativelib/Solaris/sparc-solaris/sparc32-sun-solaris2.8/librxtxSerial-2.1-7.so;&lt;br /&gt;
 nativelib/Solaris/sparc-solaris/sparc32-sun-solaris2.8/librxtxSerial.so;&lt;br /&gt;
 osname=Solaris; processor=Sparc,&lt;br /&gt;
 &lt;br /&gt;
 nativelib/Solaris/sparc-solaris/sparc64-sun-solaris2.8/librxtxSerial-2.1-7.so;&lt;br /&gt;
 nativelib/Solaris/sparc-solaris/sparc64-sun-solaris2.8/librxtxSerial.so;&lt;br /&gt;
 osname=Solaris; processor=Sparc64,&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 nativelib/Windows/i368-mingw32/rxtxParallel.dll;&lt;br /&gt;
 nativelib/Windows/i368-mingw32/rxtxSerial.dll;&lt;br /&gt;
 osname=Win32; processor=x86&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Right click on the .jar file (Referenced Libraries-&amp;gt;RXTXComm.jar and select Properties&lt;br /&gt;
*Select Javadoc Location and enter the link to this wiki's javadoc (i.e. http://users.frii.com/jarvi/rxtx/doc/). Use the Validate... button to make sure you have it right (Make sure index.html is not at the end of your link). Click Apply and then OK.&lt;br /&gt;
&lt;br /&gt;
You're done! Now you can use this plugin in your other projects as long as it remains open in your project directory. If you like, you can use the Export Wizard in the Overview tab of the manifest editor to distribute this. You can even create a feature project and include this plug-in if you want to distribute via an eclipse update site. The feature project is nice in any case from a usability standpoint because it allows you to specify all of the target OS's and architectures (CPU's) this supports.&lt;/div&gt;</description>
			<pubDate>Mon, 29 Oct 2007 20:53:26 GMT</pubDate>			<dc:creator>Moescs</dc:creator>			<comments>http://rxtx.qbang.org/wiki/index.php/Talk:Wrapping_RXTX_in_an_Eclipse_Plugin</comments>		</item>
		<item>
			<title>Wrapping RXTX in an Eclipse Plugin</title>
			<link>http://rxtx.qbang.org/wiki/index.php/Wrapping_RXTX_in_an_Eclipse_Plugin</link>
			<description>&lt;p&gt;Moescs:&amp;#32;/* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This would be done to simplify the development of [[http://www.eclipse.org/ Eclipse]] Plug-ins and RCP applications that use rxtx.&lt;br /&gt;
&lt;br /&gt;
Wrapping this code in a plug-in gives the following advantages:&lt;br /&gt;
*A link to the javadoc can be associated with the jar, so users of the newly created plug-in can easily pull up the javadoc inside eclipse.&lt;br /&gt;
*The native libraries can all be associated with this jar, so the newly created plug-in can support multiple targets OS &amp;amp; CPU architectures.&lt;br /&gt;
*Associating the javadoc and grabbing the right native library only has to be done once for all projects using rxtx.&lt;br /&gt;
*You don't have to modify the JRE of any machine. Eclipse will package the jar and corresponding native libraries in your RCP/plug-in application. Upon startup, it will select the appropriate .dll or .so file to unpack and add the .jar file to the classpath.&lt;br /&gt;
&lt;br /&gt;
==Procedure (Using Eclipse 3.3 - Europa)==&lt;br /&gt;
*In the New Project Wizard, select Plug-in Development-&amp;gt;Plug-in from existing JAR archives and click Next.&lt;br /&gt;
*Use the Add External... button to add the downloaded RXTXcomm.jar file to include in the plugin and click Next.&lt;br /&gt;
*Fill in the Plug-in Project Properties and click Finish. '''Make sure &amp;quot;Unzip the JAR archives into the project&amp;quot; is unchecked.''' Otherwise, you can do what you want. Here's an example:&lt;br /&gt;
**Project Name: rxtx plugin&lt;br /&gt;
**Plug-in ID: org.rxtx&lt;br /&gt;
**Plug-in Version: (insert the version of rxtx that your are wrapping)&lt;br /&gt;
**Plug-in Name: rxtx Plug-in&lt;br /&gt;
**Plug-in Provider: rxtx.org&lt;br /&gt;
*You will now see your new plugin project in the Package Explorer. Notice that if you open the manifest, META-INF-&amp;gt;MANIFEST.MF, in the editor and switch to the Runtime tab, you will find gnu.io in the Exported Packages (and also RXTXcomm.jar in the Classpath). This is what lets you use the java libraries when you include this new plugin in your dependency list.&lt;br /&gt;
*Create a new folder in your project called nativelib (or whatever you want).&lt;br /&gt;
*Import all the native libraries (.dll, .so, etc.) from your rxtx download under this folder.&lt;br /&gt;
*Add the following [http://www.osgi.org/ OSGI] directive to the Manifest to tell the OSGI framework how to select the appropriate native libs at startup (MANIFEST.MF tab of the MANIFEST editor).&lt;br /&gt;
**Make sure to have single spaces in the following locations: After the Bundle-Nativecode: directive, on all line continuations, and on all blank lines.&lt;br /&gt;
**Make sure to adjust the folder structure to your folder structure.&lt;br /&gt;
**Make sure to change the file names to the appropriate ones (i.e. the files that have the version number in them might change).&lt;br /&gt;
**Make sure to adjust the native lib references to the ones that you actually have.&lt;br /&gt;
**''Please note that I'm not sure about the OSGI processor name, Sparc64.''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Bundle-NativeCode: &lt;br /&gt;
 nativelib/Linux/i686-unknown-linux-gnu/librxtxParallel.so;&lt;br /&gt;
 nativelib/Linux/i686-unknown-linux-gnu/librxtxSerial.so;&lt;br /&gt;
 osname=Linux; processor=x86,&lt;br /&gt;
 &lt;br /&gt;
 nativelib/Linux/ia64-unknown-linux-gnu/librxtxSerial.so;&lt;br /&gt;
 osname=Linux; processor=ia64,&lt;br /&gt;
 &lt;br /&gt;
 nativelib/Linux/x86_64-unknown-linux-gnu/librxtxSerial.so;&lt;br /&gt;
 osname=Linux; processor=x86-64,&lt;br /&gt;
 &lt;br /&gt;
  &lt;br /&gt;
 nativelib/Mac_OS_X/librxtxSerial.jnilib;&lt;br /&gt;
 osname=Mac OS X; processor=x86; processor=PowerPC,&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 nativelib/Solaris/sparc-solaris/sparc32-sun-solaris2.8/librxtxSerial-2.1-7.so;&lt;br /&gt;
 nativelib/Solaris/sparc-solaris/sparc32-sun-solaris2.8/librxtxSerial.so;&lt;br /&gt;
 osname=Solaris; processor=Sparc,&lt;br /&gt;
 &lt;br /&gt;
 nativelib/Solaris/sparc-solaris/sparc64-sun-solaris2.8/librxtxSerial-2.1-7.so;&lt;br /&gt;
 nativelib/Solaris/sparc-solaris/sparc64-sun-solaris2.8/librxtxSerial.so;&lt;br /&gt;
 osname=Solaris; processor=Sparc64,&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 nativelib/Windows/i368-mingw32/rxtxParallel.dll;&lt;br /&gt;
 nativelib/Windows/i368-mingw32/rxtxSerial.dll;&lt;br /&gt;
 osname=Win32; processor=x86&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Right click on the .jar file (Referenced Libraries-&amp;gt;RXTXComm.jar and select Properties&lt;br /&gt;
*Select Javadoc Location and enter the link to this wiki's javadoc (i.e. http://users.frii.com/jarvi/rxtx/doc/). Use the Validate... button to make sure you have it right (Make sure index.html is not at the end of your link). Click Apply and then OK.&lt;br /&gt;
&lt;br /&gt;
You're done! Now you can use this plugin in your other projects as long as it remains open in your project directory. If you like, you can use the Export Wizard in the Overview tab of the manifest editor to distribute this. You can even create a feature project and include this plug-in if you want to distribute via an eclipse update site. The feature project is nice in any case from a usability standpoint because it allows you to specify all of the target OS's and architectures (CPU's) this supports.&lt;/div&gt;</description>
			<pubDate>Mon, 29 Oct 2007 20:52:05 GMT</pubDate>			<dc:creator>Moescs</dc:creator>			<comments>http://rxtx.qbang.org/wiki/index.php/Talk:Wrapping_RXTX_in_an_Eclipse_Plugin</comments>		</item>
		<item>
			<title>Wrapping RXTX in an Eclipse Plugin</title>
			<link>http://rxtx.qbang.org/wiki/index.php/Wrapping_RXTX_in_an_Eclipse_Plugin</link>
			<description>&lt;p&gt;Moescs:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
This would be done to simplify the development of [[http://www.eclipse.org/ Eclipse]] Plug-ins and RCP applications that use rxtx.&lt;br /&gt;
&lt;br /&gt;
Wrapping this code in a plug-in gives the following advantages:&lt;br /&gt;
*A link to the javadoc can be associated with the jar, so users of the newly created plug-in can easily pull up the javadoc inside eclipse.&lt;br /&gt;
*The native libraries can all be associated with this jar, so the newly created plug-in can support multiple targets OS &amp;amp; CPU architectures.&lt;br /&gt;
*Associating the javadoc and grabbing the right native library only has to be done once for all projects using rxtx.&lt;br /&gt;
*You don't have to modify the JRE of any machine. Eclipse will package the jar and corresponding native libraries in your RCP/plug-in application. Upon startup, it will select the appropriate .dll or .so file to unpack and add the .jar file to the classpath.&lt;br /&gt;
&lt;br /&gt;
==Procedure (Using Eclipse 3.3 - Europa)==&lt;br /&gt;
*In the New Project Wizard, select Plug-in Development-&amp;gt;Plug-in from existing JAR archives and click Next.&lt;br /&gt;
*Use the Add External... button to add the downloaded RXTXcomm.jar file to include in the plugin and click Next.&lt;br /&gt;
*Fill in the Plug-in Project Properties and click Finish. '''Make sure &amp;quot;Unzip the JAR archives into the project&amp;quot; is unchecked.''' Otherwise, you can do what you want. Here's an example:&lt;br /&gt;
**Project Name: rxtx plugin&lt;br /&gt;
**Plug-in ID: org.rxtx&lt;br /&gt;
**Plug-in Version: (insert the version of rxtx that your are wrapping)&lt;br /&gt;
**Plug-in Name: rxtx Plug-in&lt;br /&gt;
**Plug-in Provider: rxtx.org&lt;br /&gt;
*You will now see your new plugin project in the Package Explorer. Notice that if you open the manifest, META-INF-&amp;gt;MANIFEST.MF, in the editor and switch to the Runtime tab, you will find gnu.io in the Exported Packages (and also RXTXcomm.jar in the Classpath). This is what lets you use the java libraries when you include this new plugin in your dependency list.&lt;br /&gt;
*Create a new folder in your project called nativelib (or whatever you want).&lt;br /&gt;
*Import all the native libraries (.dll, .so, etc.) from your rxtx download under this folder.&lt;br /&gt;
*Add the following [http://www.osgi.org/ OSGI] directive to the Manifest to tell the OSGI framework how to select the appropriate native libs at startup (MANIFEST.MF tab of the MANIFEST editor).&lt;br /&gt;
**Make sure to have single spaces in the following locations: After the Bundle-Nativecode: directive, on all line continuations, and on all blank lines.&lt;br /&gt;
**Make sure to adjust the folder structure to your folder structure.&lt;br /&gt;
**Make sure to change the file names to the appropriate ones (i.e. the files that have the version number in them might change).&lt;br /&gt;
**Make sure to adjust the native lib references to the ones that you actually have.&lt;br /&gt;
**''Please note that I'm not sure about the OSGI processor name, Sparc64.''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Bundle-NativeCode: &lt;br /&gt;
 nativelib/Linux/i686-unknown-linux-gnu/librxtxParallel.so;&lt;br /&gt;
 nativelib/Linux/i686-unknown-linux-gnu/librxtxSerial.so;&lt;br /&gt;
 osname=Linux; processor=x86,&lt;br /&gt;
 &lt;br /&gt;
 nativelib/Linux/ia64-unknown-linux-gnu/librxtxSerial.so;&lt;br /&gt;
 osname=Linux; processor=ia64,&lt;br /&gt;
 &lt;br /&gt;
 nativelib/Linux/x86_64-unknown-linux-gnu/librxtxSerial.so;&lt;br /&gt;
 osname=Linux; processor=x86-64,&lt;br /&gt;
 &lt;br /&gt;
  &lt;br /&gt;
 nativelib/Mac_OS_X/librxtxSerial.jnilib;&lt;br /&gt;
 osname=Mac OS X; processor=x86; processor=PowerPC,&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 nativelib/Solaris/sparc-solaris/sparc32-sun-solaris2.8/librxtxSerial-2.1-7.so;&lt;br /&gt;
 nativelib/Solaris/sparc-solaris/sparc32-sun-solaris2.8/librxtxSerial.so;&lt;br /&gt;
 osname=Solaris; processor=Sparc,&lt;br /&gt;
 &lt;br /&gt;
 nativelib/Solaris/sparc-solaris/sparc64-sun-solaris2.8/librxtxSerial-2.1-7.so;&lt;br /&gt;
 nativelib/Solaris/sparc-solaris/sparc64-sun-solaris2.8/librxtxSerial.so;&lt;br /&gt;
 osname=Solaris; processor=Sparc64,&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 nativelib/Windows/i368-mingw32/rxtxParallel.dll;&lt;br /&gt;
 nativelib/Windows/i368-mingw32/rxtxSerial.dll;&lt;br /&gt;
 osname=Win32; processor=x86&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Right click on the .jar file (Referenced Libraries-&amp;gt;RXTXComm.jar and select Properties&lt;br /&gt;
*Select Javadoc Location and enter the link to this wiki's javadoc (i.e. http://users.frii.com/jarvi/rxtx/doc/). Use the Validate... button to make sure you have it right (Make sure index.html is not at the end of your link). Click Apply and then OK.&lt;br /&gt;
&lt;br /&gt;
You're done! Now you can use this plugin in your other projects as long as it remains open in your project directory. If you like, you can use the Export Wizard in the Overview tab of the manifest editor to distribute this. You can even create a feature project and include this plug-in if you want to distribute via an eclipse update site. The feature project is nice in any case from a usability standpoint because it allows you to specify all of the target OS's and architectures (CPU's) this supports.&lt;/div&gt;</description>
			<pubDate>Mon, 29 Oct 2007 20:51:34 GMT</pubDate>			<dc:creator>Moescs</dc:creator>			<comments>http://rxtx.qbang.org/wiki/index.php/Talk:Wrapping_RXTX_in_an_Eclipse_Plugin</comments>		</item>
		<item>
			<title>Using RXTX</title>
			<link>http://rxtx.qbang.org/wiki/index.php/Using_RXTX</link>
			<description>&lt;p&gt;Moescs:&amp;#32;Added link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is for general content regarding the use of rxtx.  Feel free to add your own content.&lt;br /&gt;
&lt;br /&gt;
*[[Using RXTX In Eclipse]]&lt;br /&gt;
*[[Wrapping RXTX In an Eclipse Plugin]]&lt;br /&gt;
*[[Using RXTX In NetBeans]]&lt;br /&gt;
*[[Deploying JAVA with RXTX]]&lt;br /&gt;
&lt;br /&gt;
I wrote an app several months ago using javax.comm on windows. Sun has left me high and dry. rxtx help!&lt;br /&gt;
&lt;br /&gt;
*download [ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7-bins-r2.zip]&lt;br /&gt;
*unzip it&lt;br /&gt;
*copy rxtxSerial.dll into your c:\program files\java\jre-version\bin dir&lt;br /&gt;
*copy RXTXcomm.jar into your c:\program files\java\jre-version\lib\ext dir&lt;br /&gt;
*change all references from 'javax.comm' to 'gnu.io'&lt;br /&gt;
*recompile&lt;br /&gt;
*test&lt;br /&gt;
&lt;br /&gt;
  Dido Sun left me Hi and dry. After 30+ hours wasting my life on&lt;br /&gt;
 javax.comm it is the RXTXcomm 2.1.7 that really worked the first &lt;br /&gt;
 time&lt;br /&gt;
&lt;br /&gt;
  REMEMBER !! for the newbies&lt;br /&gt;
   Change the all occurences of the import javax.comm.*; in  &lt;br /&gt;
    MyApps.java&lt;br /&gt;
   TO import gnu.io.*;&lt;br /&gt;
  I did not even have to recompile as suggested the rxtxSerial.dll&lt;br /&gt;
&lt;br /&gt;
  a job well done for the rxtx.org team.&lt;/div&gt;</description>
			<pubDate>Mon, 29 Oct 2007 20:50:10 GMT</pubDate>			<dc:creator>Moescs</dc:creator>			<comments>http://rxtx.qbang.org/wiki/index.php/Talk:Using_RXTX</comments>		</item>
		<item>
			<title>Wrapping RXTX in an Eclipse Plugin</title>
			<link>http://rxtx.qbang.org/wiki/index.php/Wrapping_RXTX_in_an_Eclipse_Plugin</link>
			<description>&lt;p&gt;Moescs:&amp;#32;New page: ==Introduction== This would be done to simplify the development of http://www.eclipse.org/ Eclipse Plug-ins and RCP applications that use rxtx.  Wrapping this code in a plug-in gives t...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
This would be done to simplify the development of [[http://www.eclipse.org/ Eclipse]] Plug-ins and RCP applications that use rxtx.&lt;br /&gt;
&lt;br /&gt;
Wrapping this code in a plug-in gives the following advantages:&lt;br /&gt;
*A link to the javadoc can be associated with the jar, so users of the newly created plug-in can easily pull up the javadoc inside eclipse.&lt;br /&gt;
*The native libraries can all be associated with this jar, so the newly created plug-in can support multiple targets OS &amp;amp; CPU architectures.&lt;br /&gt;
*Associating the javadoc and grabbing the right native library only has to be done once for all projects using rxtx.&lt;br /&gt;
*You don't have to modify the JRE of any machine. Eclipse will package the jar and corresponding native libraries in your RCP/plug-in application. Upon startup, it will select the appropriate .dll or .so file to unpack and add the .jar file to the classpath.&lt;br /&gt;
&lt;br /&gt;
==Procedure (Using Eclipse 3.3 - Europa)==&lt;br /&gt;
*In the New Project Wizard, select Plug-in Development-&amp;gt;Plug-in from existing JAR archives and click Next.&lt;br /&gt;
*Use the Add External... button to add the downloaded RXTXcomm.jar file to include in the plugin and click Next.&lt;br /&gt;
*Fill in the Plug-in Project Properties and click Finish. '''Make sure &amp;quot;Unzip the JAR archives into the project&amp;quot; is unchecked.''' Otherwise, you can do what you want. Here's an example:&lt;br /&gt;
**Project Name: rxtx plugin&lt;br /&gt;
**Plug-in ID: org.rxtx&lt;br /&gt;
**Plug-in Version: (insert the version of rxtx that your are wrapping)&lt;br /&gt;
**Plug-in Name: rxtx Plug-in&lt;br /&gt;
**Plug-in Provider: rxtx.org&lt;br /&gt;
*You will now see your new plugin project in the Package Explorer. Notice that if you open the manifest, META-INF-&amp;gt;MANIFEST.MF, in the editor and switch to the Runtime tab, you will find gnu.io in the Exported Packages (and also RXTXcomm.jar in the Classpath). This is what lets you use the java libraries when you include this new plugin in your dependency list.&lt;br /&gt;
*Create a new folder in your project called nativelib (or whatever you want).&lt;br /&gt;
*Import all the native libraries (.dll, .so, etc.) from your rxtx download under this folder.&lt;br /&gt;
*Add the following [http://www.osgi.org/ OSGI] directive to the Manifest to tell the OSGI framework how to select the appropriate native libs at startup (MANIFEST.MF tab of the MANIFEST editor).&lt;br /&gt;
**Make sure to have single spaces in the following locations: After the Bundle-Nativecode: directive, on all line continuations, and on all blank lines.&lt;br /&gt;
**Make sure to adjust the folder structure to your folder structure.&lt;br /&gt;
**Make sure to change the file names to the appropriate ones (i.e. the files that have the version number in them might change).&lt;br /&gt;
**Make sure to adjust the native lib references to the ones that you actually have.&lt;br /&gt;
**''Please note that I'm not sure about the OSGI processor name, Sparc64.''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Bundle-NativeCode: &lt;br /&gt;
 nativelib/Linux/i686-unknown-linux-gnu/librxtxParallel.so;&lt;br /&gt;
 nativelib/Linux/i686-unknown-linux-gnu/librxtxSerial.so;&lt;br /&gt;
 osname=Linux; processor=x86,&lt;br /&gt;
 &lt;br /&gt;
 nativelib/Linux/ia64-unknown-linux-gnu/librxtxSerial.so;&lt;br /&gt;
 osname=Linux; processor=ia64,&lt;br /&gt;
 &lt;br /&gt;
 nativelib/Linux/x86_64-unknown-linux-gnu/librxtxSerial.so;&lt;br /&gt;
 osname=Linux; processor=x86-64,&lt;br /&gt;
 &lt;br /&gt;
  &lt;br /&gt;
 nativelib/Mac_OS_X/librxtxSerial.jnilib;&lt;br /&gt;
 osname=Mac OS X; processor=x86; processor=PowerPC,&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 nativelib/Solaris/sparc-solaris/sparc32-sun-solaris2.8/librxtxSerial-2.1-7.so;&lt;br /&gt;
 nativelib/Solaris/sparc-solaris/sparc32-sun-solaris2.8/librxtxSerial.so;&lt;br /&gt;
 osname=Solaris; processor=Sparc,&lt;br /&gt;
 &lt;br /&gt;
 nativelib/Solaris/sparc-solaris/sparc64-sun-solaris2.8/librxtxSerial-2.1-7.so;&lt;br /&gt;
 nativelib/Solaris/sparc-solaris/sparc64-sun-solaris2.8/librxtxSerial.so;&lt;br /&gt;
 osname=Solaris; processor=Sparc64,&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 nativelib/Windows/i368-mingw32/rxtxParallel.dll;&lt;br /&gt;
 nativelib/Windows/i368-mingw32/rxtxSerial.dll;&lt;br /&gt;
 osname=Win32; processor=x86&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Right click on the .jar file (Referenced Libraries-&amp;gt;RXTXComm.jar and select Properties&lt;br /&gt;
*Select Javadoc Location and enter the link to this wiki's javadoc (i.e. http://users.frii.com/jarvi/rxtx/doc/). Use the Validate... button to make sure you have it right (Make sure index.html is not at the end of your link like the [[gnu.io JavaDoc]] link elswhere in this wiki). Click Apply and then OK.&lt;br /&gt;
&lt;br /&gt;
You're done! Now you can use this plugin in your other projects as long as it remains open in your project directory. If you like, you can use the Export Wizard in the Overview tab of the manifest editor to distribute this. You can even create a feature project and include this plug-in if you want to distribute via an eclipse update site. The feature project is nice in any case from a usability standpoint because it allows you to specify all of the target OS's and architectures (CPU's) this supports.&lt;/div&gt;</description>
			<pubDate>Mon, 29 Oct 2007 20:49:29 GMT</pubDate>			<dc:creator>Moescs</dc:creator>			<comments>http://rxtx.qbang.org/wiki/index.php/Talk:Wrapping_RXTX_in_an_Eclipse_Plugin</comments>		</item>
	</channel>
</rss>