> From: Zsbán Ambrus <[EMAIL PROTECTED]> > > On Tue, Sep 16, 2008 at 03:32, bill lam wrote: > > Now J is the only program that require java runtime inside my computer > > and I would like to get rid of java. Suppose I only use jconsole and > > don't need functions provided by J IDE except pacman, project and > > debug available. Any idea how feasible that will be? > > You could write a library for J that uses another GUI widget kit. > There are basically three ways for this today. One is to use the > foreign call interface (15!:) to call stuff. Second is to write a > master program which is like j itself that it calls the j interpreter > library, runs a program, and answers window (11!:) requests in a new > way. (This used to be easier back when we had the j socket protocol. > In j602, you instead have to figure out how the library interface > works. The documentation and examples aren't really enough for this, > so you basically have to guess. I have figured out part of the > interface in the jep.c program in > http://www.math.bme.hu/~ambrus/pu/jevalbot.tgz, but there are some > assumptions I use, and I specifically couldn't figure out how J passes > you noun data, and you may need that to handle window requests.) The > third way is to do most of the work in a non-J program that handles > the gui and all stuff, but do the numerical calculations and whatever > J is the best for in a separate J program.
J socket protocol was definitely not easier than the now published binary call-back interface, just because you had to figure out the painstaking communication protocol. The example of complete JFE is in j602\system\examples\jfe. It's not easy to predict all possibly difficulties, so if someone has a particular problem, it make sense to discuss it here. For example, what feature were you looking for beyond the JFE example? ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
