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: 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: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8aeb4c0e-53ad-4bf3-afa3-d2ac769b8cbf@googlegroups.com> Subject: Re: I need to write Simple JAVA program to read and write from USB serial to use it with Arduino From: Lew 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 sahm wrote: > I=92m trying to write simple JAVA [sic] program that could send command t= o=20 > 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=20 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,=20 typically one has that library in the form of a JAR file (file with name=20 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 'impo= rt' 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= ,=20 and copied and pasted output if you need further help. Make sure you do the= =20 suggested research first. --=20 Lew