We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › Using Serial in my standaolone Java application
Page Index Toggle Pages: 1
Using Serial in my standaolone Java application (Read 531 times)
Using Serial in my standaolone Java application
Dec 4th, 2008, 12:04am
 
Hi there,

I've created an application which needs to communicate with a
arduino using serial / rs232 (via USB).  Does someone knows if I can use the .jar files of processing so I can use Serial?

Roxlu
Re: Using Serial in my standaolone Java applicatio
Reply #1 - Dec 5th, 2008, 10:45am
 
Not sure of the meaning of the question. Is Serial page answering it
Re: Using Serial in my standaolone Java applicatio
Reply #2 - Dec 5th, 2008, 3:35pm
 
Hi,

Well, I've created an application (just standalone which doesnt have anything to do with processing). Though I know
processing and it's Serial class.

I'm wondering if I can use this Serial class in my application... AND how.

Roxlu
Re: Using Serial in my standaolone Java applicatio
Reply #3 - Dec 5th, 2008, 5:23pm
 
Not easily, no. Since to create a Serial object you need to pass in a PApplet object, and it's designed to interact with said PApplet object.
Re: Using Serial in my standaolone Java applicatio
Reply #4 - Dec 5th, 2008, 5:51pm
 
I don't think you can use it as is (using the jar) but maybe you can look at its source and see how it was done, and re-create it out of it specific context.
Re: Using Serial in my standaolone Java applicatio
Reply #5 - Dec 5th, 2008, 5:52pm
 
Okay thanks!

Someone else pointed me at the rxtx java library.

Roxlu
Page Index Toggle Pages: 1