Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #19300

Re: I need to write Simple JAVA program to read and write from USB serial to use it with Arduino

Received by 10.68.233.137 with SMTP id tw9mr2138538pbc.6.1350158880106; Sat, 13 Oct 2012 13:08:00 -0700 (PDT)
Received by 10.68.219.198 with SMTP id pq6mr1895083pbc.0.1350158880091; Sat, 13 Oct 2012 13:08:00 -0700 (PDT)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!newsfeed.news.ucla.edu!usenet.stanford.edu!kr7no26755493pbb.0!news-out.google.com!s9ni3442pbb.0!nntp.google.com!kt20no31837557pbb.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.java.programmer
Date Sat, 13 Oct 2012 13:07:59 -0700 (PDT)
In-Reply-To <ba723146-04af-433c-9b5b-8ca39828039f@googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=173.164.137.214; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T
NNTP-Posting-Host 173.164.137.214
References <ba723146-04af-433c-9b5b-8ca39828039f@googlegroups.com>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <8aeb4c0e-53ad-4bf3-afa3-d2ac769b8cbf@googlegroups.com> (permalink)
Subject Re: I need to write Simple JAVA program to read and write from USB serial to use it with Arduino
From Lew <lewbloch@gmail.com>
Injection-Date Sat, 13 Oct 2012 20:08:00 +0000
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding quoted-printable
Xref csiph.com comp.lang.java.programmer:19300

Show key headers only | View raw


sahm wrote:
> I’m trying to write simple JAVA [sic] program that could send command to 
> Arduino board or read output from Arduino.
> I tried java-simple-serial-connector library but I keep getting error.
> And in Arduino web site they use gnu.io. classpath 

It's not a classpath.

> witch I have no idea how to use it with java [sic]

I can answer only part of this. To use any library with a Java program, 
typically one has that library in the form of a JAR file (file with name 
ending in ".jar", in ZIP file format and possessing certain contents; GIYF)
that one includes in the classpath (GIYF).

There are also language requirements to using libraries involving the 'import'
directive. (TIYF: The Tutorial is Your Friend.)

Download the library you need and include it in your classpath.

Follow up here with the specific commands you use, exactly how you use them, 
and copied and pasted output if you need further help. Make sure you do the 
suggested research first.

-- 
Lew

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

I need to write Simple JAVA program to read and write from USB serial to use it with Arduino sahm <sahm007@gmail.com> - 2012-10-13 12:54 -0700
  Re: I need to write Simple JAVA program to read and write from USB serial to use it with Arduino Lew <lewbloch@gmail.com> - 2012-10-13 13:07 -0700
  Re: I need to write Simple JAVA program to read and write from USB serial to use it with Arduino Arne Vajhoej <arne@vajhoej.dk> - 2012-10-13 19:00 -0400
  Re: I need to write Simple JAVA program to read and write from USB serial to use it with Arduino Martin Gregorie <martin@address-in-sig.invalid> - 2012-10-14 00:02 +0000
  Re: I need to write Simple JAVA program to read and write from USB serial to use it with Arduino Knute Johnson <nospam@knutejohnson.com> - 2012-10-13 17:30 -0700
  Re: I need to write Simple JAVA program to read and write from USB serial to use it with Arduino stledger@lanl.gov - 2012-10-15 11:24 -0700

csiph-web