Solved

Java + Serial Printer

Posted on 2010-08-12
1
444 Views
Last Modified: 2013-11-23
I have no idea where to start on this one. I was handed a Java application by my boss because I answered his question with "I used it for a couple days about 5 years ago" when he asked me if I was familiar with Java.

So here's my issue: This software connects to a receipt printer via serial port and prints receipts after a transaction was completed in the software.. For some reason the software only worked with Windows XP and so I was tasked with making it work under Vista and Windows 7.

Ok, so I just compile it with the latest compiler and it should work right? Well it did, sort of. It runs under windows 7 now just fine but the receipt printer no longer works. I had the /lib/rxtxcomm.jar file included with the compiled jar so in theory it should be working but for some reason it won't see the printer anymore.

Keep in mind, I wasn't joking with my Java experience. I played with it for a week just to see what it was about five years ago and with the exception of extensive Javascript use, I have no real working knowledge of this language but as I'm the only one at the company that can spell Java, and they're too cheap to hire a consultant, I'm stuck with this. Small words and baby talk would be appreciated.

Is there anyone that can give me some starting points or should I make sure my resume is up to date and tell the boss I can't do it?
0
Comment
Question by:fredstov
1 Comment
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 33426108
You may not have all the files.  Take a look at this page: http://forums.sun.com/thread.jspa?threadID=698876  And 'Java' is not 'javascript' or even actually related.  In researching your question, I didn't see much in the way of good news.  The page I have linked said that Sun decided that serial and parallel ports weren't used much under Windows anymore.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question