[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ObjC + Java
From: |
Pietro Terna |
Subject: |
Re: ObjC + Java |
Date: |
Sun, 06 May 2001 19:42:11 +0200 |
Hi Marcus,
two more questions about your considerations below.
1. Where can I find java-stub.el program?
2. How can I run it, in Linux or in W32 (may be, using Emacs
as Lisp environment?).
Many thanks, Pietro
At 16.14 19/04/2001 -0700, you wrote:
>>>>> "PT" == Pietro Terna <address@hidden> writes:
PT> Is it possible to access Swarm ObjC classes from a JavaSwarm
PT> application?
There are two ways:
1) Write a file that describes the interfaces you want to export.
This file would be like space.h, analysis.h, etc. in the Swarm
distribution. E.g. a @protocol for each class in your package.
Note this requires having CREATING and USING tags to describe the
category of the methods. Then you run it through the etc/java-stub.el
elisp program which generates a .jar file and shared libraries in
the way the Java virtual machine wants to see them.
Advantage: The result is clean and to users it looks like any
other Java library.
Disadvantage: It's a non-zero amount of work to set up. The stubber
is general but the Makefiles, etc. are not set up for
casual
users. I'd be willing to help set up a tool to make
it easy, but only if people would actually use it.
(I won't do work to entertain idle curiousity.)
2) If it is just a few calls you want to make, the FArguments/FCall
interface will let you call specific Objective C methods from Java.
Advantage: It's less work to set up
Disadvantage: It's inconvenient to use in more complex situations,
since each call must be constructed at runtime via the
FCall interface.
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
- Re: ObjC + Java,
Pietro Terna <=