TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
"Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
Fri, 8 Oct 1999 16:45:24 -0600
text/plain; charset="iso-8859-1"
Andrew Logue <[log in to unmask]>
text/plain (63 lines)
You are correct about the distinction between primitives and classes in
Java.  Much of Java's functionality, flexibility, and appeal is due to
the system java class libraries which provide Java's support for IO,
string manipulation, networking, graphics, multimedia fileformats, etc.

Essentially this amounts to nothing more than an API.  (Although it's a
very BIG and powerful API...Java's networking package seems
exceptionally thorough)  I'm not sure what you mean by "are the java
class libraries available from Ada".  Are you asking if Ada has a similar
API available (written in Ada)?

Or are you asking if you can use a chunk of Java code or a Java GUI from
within an Ada program?  This is a much more complex (and interesting)
question and I don't think I can answer it fully.

But first of all the target machine would have to have the Java run-time
system installed.  This should be available for Windows, Solaris, possibly
Linux (might not have shipped yet) - maybe a few other OSes.  Since the
run-time system is responsible for interpretting the Java bytecode I
think that the answer to your question would depend on the particular RTS.

Some Java run-time systems apparently perform just-in-time compilation of
Java bytecode into native system code.  I'm pretty sure this can be achieved
in Win9x.

But the question I have for you is WHY would you want to go to
the trouble when either language by itself should be sufficient to meet your

Andrew Logue
Software Architect / Bug Squisher
Computing Devices Canada
work phone 730-1186
email [log in to unmask]; [log in to unmask]

> -----Original Message-----
> From: Team Ada: Ada Advocacy Issues (83 & 95)
> [mailto:[log in to unmask]]On Behalf Of Kester, Rush W.
> Sent: October 8, 1999 1:35 PM
> To: [log in to unmask]
> Subject: Interfacing Ada to Java technology
> As I understand, Java has two classes of data types: primitives
> and objects.
> The first is a very tiny set that includes char, boolean, int, double,
> short, and just a few others. The second is a gigantic set, which includes
> all the thousands of classes in all the Java standard libraries. Is this
> second category available from Ada (or from any other language, for that
> matter)?
> Also, I'd very much like to have a URL to a source where I can read more.
> Rush Kester
> Software Systems Engineer
> AdaSoft at Johns Hopkins Applied Physics Lab.
> email:  [log in to unmask]
> phone: (240) 228-3030 (live M-F 9:30am-4:30pm, voicemail anytime)
> fax:      (240) 228-6779