[1540] in java-interest

home help back first fref pref prev next nref lref last post

RE:

daemon@ATHENA.MIT.EDU (Nelson Yu)
Thu Sep 7 06:27:10 1995

From: Nelson Yu <nyu@gpu.srv.ualberta.ca>
To: "'java-interest@java.sun.com'" <java-interest@java.sun.com>
Date: Thu, 7 Sep 1995 00:57:07 -0600

Richard,

      >I have few questions :
>
>1) In what language are the API classes implemented ?=20

API stands for Application Programming Interface and can be implemented =
in any language, but calling it is a different matter(i.e Windows APIs =
must use either the C or Pascal calling convention). Thus Java's AWT =
probably used C and C++ to interface with the OS. From what I heard over =
with some bugs in the Win95/NT versions and talk about CVews and such, =
they must be using an application framework such as MFC 3.x(C++).

>2) Can I implement a class in C and use that class from inside an =
applet >?

C doesn't support the notion of 'classes', but you probably could =
implement
each member function in C as a native method in Java. Using C++ and =
importing classes would be difficult because nobody has standardized(not =
even the new ANSI C++) name mangling and calling procedures. So you need =
to use "extern" quite a bit and do what Windows programmers do with C++ =
classes to make them into C-callable DLLs.

>3) If I implement a class where (which directory) should I put it so I =
can=20
>use it ?

Wherever you specified your CLASSPATH environment variable to be. Mine's =
in c:\html\classes.



-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post