Phone:(705) 671-2652
    Fax:(705) 671-6127
   Email: tom@ontrak.net
Home Products Programming Applications Custom Designs Ordering News
    
AduJava - Using the Borland Compiler

 

Borland provides a free-of-charge command line compiler for the C language. (Note Microsoft has matched this astounding offer with the release of their command line compiler and linker ... don't you love competition)

To use the Borland compiler to build the AduJava demo follow these steps.

Download and install the Borland Windows 5.5 compiler.

Adjust the setpathB.bat file to reflect the location where the Borland compiler is installed on your computer.
On my computer the setpathB.bat file looks like this:
setpathb.jpg (10429 bytes)

Adjust the compileB.bat file to reflect the locations where the Borland compiler and the java SDK are installed on your computer.
On my computer the compileB.bat file looks like this:
compileb.jpg (27370 bytes)
Be aware that the editor has wrapped the second line around. What appears to be the third line is really the tail end of the second line. The file has only three lines in it.

In case your display is not clear here is a copy of the Borland compile command file
Note: rename the file to compileB.bat if you want to run it.

Here is the compileB.bat file as in-line text. (it will probably run off the right of your screen).

Coff2Omf AduHid.lib AduHidOMF.lib
BCC32 -c -w-8057 -w-8004 -IC:\Borland\BCC55\Include -LC:\Borland\BCC55\Lib -IC:\j2sdk1.4.2_07\include -IC:\j2sdk1.4.2_07\include\win32 AduJava.c
BCC32 -tWD -LC:\Borland\BCC55\Lib AduHidOMF.lib AduJava.obj

To build the demo:

  1. Open a DOS command window
  2. Change to the directory containing AduJava.java
  3. run "setpath.bat"
  4. run "javac AduJava.java"
  5. run "javah AduJava"
  6. run "setpathB.bat" (note the extra B in the command name)
  7. run "compileB.bat"
  8. test the program with the command "java AduJava"

The Borland compiler issues some warnings that the Microsoft compiler did not. We will ignore the warnings for the purposes of this demo. The output looks like this. The lines that you type are highlighted in yellow.

 
    
Contact Information
Address Telephone Electronic Mail
Ontrak Control Systems Inc.
764 Notre Dame Ave., Unit #1
Tel: (705) 671-2652 General Information Sales or Support
Sudbury,Ontario Fax:(705) 671-6127 tom@ontrak.net
CANADA P3A 2T2    
              
Next-Day shipping anywhere in Continental U.S. via Fed-Ex
Copyright 2012 ONTRAK CONTROL SYSTEMS 764 Notre Dame Ave, Unit #1 , Sudbury, Ontario, CANADA P3A 2T2  
"Quality serial Data Acquisition Interfaces"           PH. (705) 671-2652 FAX (705) 671-6127