Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8907571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:57:04+00:00 2026-06-15T02:57:04+00:00

This question arises from a problem we have here, and we’re looking for a

  • 0

This question arises from a problem we have here, and we’re looking for a way to solve it. We have a really old machine (running DOS 6.22) which needs to communicate with a serial application written in Java. But we have neither found a C/C++ event based rs232 library to implement the program for the DOS machine (yet), nor an already compiled program to do this job. But since we already have a working Java event based rs232 program, we were wondering if it’s possible to compile it and make an .exe out of it to install it in the old machine.

That would be an easy way out of the problem if possible, but if it isn’t, are there any rs232 libraries to build the program for our old machine? Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T02:57:05+00:00Added an answer on June 15, 2026 at 2:57 am

    Linux gcj is capable of compiling java programs into executable code that runs without a VM. So you can use gcj on a linux machine to crosscompile and create a .EXE for DOS. See http://gcc.gnu.org/java. And for the list of platforms it supports see http://gcc.gnu.org/install/specific.html, DOS would be the 7th item in the list.

    That said, I don’t think you’re java based rs232 library is going to work, even if the rest of the program does work, and you’ll have all sorts of other limitations Java will not easily live with, like the famous 640K memory limit, which you’ll find in practice closer to 440K on actual systems.

    Another complication you’ll find with event-based programming is that DOS is single threaded. So you cannot easily use any form of event based programming except cooperative multitasking. This is not hard, but be aware of it.

    In DOS you’ll essentially be writing a serial device driver to communicate with the serial port, like an operating system driver, setting the registers and initiating data transfers the way a char driver would do it in linux. There is a wikibook on the subject which is quite informative at http://en.wikibooks.org/wiki/Serial_Programming/DOS_Programming.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's the question first: Is this possible? I'm taking my inspiration from Joe Wrobel's
This question is different from the questions posted here and here even though the
Coming off the back of this question here , is there a way to
This question is really basic. What is the performance difference between removing a UIView
This question is related to another question I wrote: Trouble using DOTNET from PHP.
This question came up from what I see on a clients side: Intermittent Connection
What I currently have looks a bit like this: if(userLikesBananas) { return from fruit
The question arises from the need to reuse a code for different types of
My question concerns using aidl.exe (on a Windows system) from the command line. This
I know this question must have been covered endless of times, but I've searched

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.