Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Java + Serial Printer

Posted on 2010-08-12
1
Medium Priority
?
456 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 84

Accepted Solution

by:
Dave Baldwin earned 2000 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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses

971 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