Re: Status of Java Bridge?
Re: Status of Java Bridge?
- Subject: Re: Status of Java Bridge?
- From: "Cameron S. Bahan" <email@hidden>
- Date: Fri, 30 May 2003 12:58:33 -0400
Well, it has been quite a while since I actually played with this - but
some time ago I actually wrote a small project that did this Java to
Obj-C and Obj-C to java bridging. At the time this was done to
'prove-the-possibility'.
While the Obj-C to Java was published (as discussed in the Cocoa Dev
Central article) worked there was still that issue of the Java to Obj-C
... but Java already has a means for that communication. JNI works
great here. From C I then use other standard methods to get into the
Obj-C ... guess this is a bit of a work around ... but from what I
recall it was not that difficult. (Going over some old docs I guess
there was a problem unregistering the object - but I am sure that is
not a complicated issue to resolve)
I have included the link to this old project for reference:
http://www.apexsoftware.ca/bahanclan/cameron/projects/osx/
JavaTest.tar.gz
Note:
I have not used, updated, or tested this new code since late 2001 - so
please use at your own risk. I am, however, interested in other
peoples opinions, thoughts, or suggestions. A basic
description/tutoria is included in the README file.
--
Cameron Bahan
http://www.bahanclan.com
On Friday, May 30, 2003, at 12:24 PM, Dave Thorup wrote:
>
On 5/30/03 6:33 AM, "Rolf" <email@hidden> wrote:
>
>
> BTW: This fine article is a "must" if you're going to use the
>
> JavaBrige:
>
> http://cocoadevcentral.com/articles/000024.php#000024
>
>
>
> I really don't hope the JavaBridge is legacy or about to become so.
>
> ProjectBuilder supports writing native cocoa apps in both Java and
>
> Objective C
>
> language, allows mixing both in one app, and it seems illogical (and
>
> would be
>
> a shame) if the JavaBridge was removed. Instead they should be
>
> improving it !!
>
>
>
> /Rolf
>
>
Rolf,
>
>
This article is all well and good if you want to use Java classes from
>
Objective-C, but this does not address Andrew's problem of calling
>
Objective-C classes from Java (Java-Wrapped Objective-C Classes).
>
>
Apple has done a good job of making much of the AppKit and Foundation
>
available to Java apps, but what about those Objective-C Frameworks
>
that
>
haven't been made available to Java? How do I call my Foo Framework
>
from
>
Java that I've spent a lot of time developing? I would need to make
>
my own
>
Java-Wrappers for my Objective-C classes, but how do I do that?
>
>
If you read through this entire section:
>
>
http://developer.apple.com/techpubs/macosx/Cocoa/Legacy/JavaBridge/
>
JavaBridg
>
e.html
>
>
Then you'll see that this part of the Java Bridge really is legacy.
>
The
>
tool, WrapIt, no longer exists, nor does the Project Builder "Java
>
Wrapper
>
Project " exist anymore.
>
>
I for one hope that Apple revives this part of the Java Bridge. They
>
must
>
still have something similar to WrapIt and the Project Builder "Java
>
Wrapper" projects around; how else would they make the Java Wrappers
>
for
>
AppKit and Foundation?
>
>
Can anyone at Apple comment on whether this part of the Java Bridge
>
will be
>
made more accessible in the future?
>
>
I would suggest that anyone who wants this part of the Java Bridge
>
improved
>
submit a bug report to Apple requesting it.
>
>
____________________________________
>
>
Dave Thorup
>
Software Engineer
>
email@hidden
>
voice: 801-805-9422
>
>
www.corda.com
>
Interactive data driven graphics.
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.