Calling Java - and back

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Calling Java - and back

Joachim Geidel
Hello world,

It's now possible to call Java from VisualWorks - and to call back!

Here's a screenshot showing a workspace with code which opens a Swing
window, the Swing window showing the Smalltalk class hierarchy using
callbacks, and VisualWorks logging the Java VM's debugging output in the
Transcript. (The Swing example is taken from Chris Uppal's JNIPort
documentation.)

The latest version of JNIPort for VisualWorks which enables callbacks is
in the Cincom Public Repository. This may a bit premature because there
are still exceptions and JVM crashes with certain combinations of
options (involving lazy ghost classes and the VFPrintfHook), but I
couldn't resist. :-)

Joachim Geidel


SwingCallbacks.jpeg (450K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Calling Java - and back

Janko Mivšek
Joachim,

That's just wonderful news! Many thanks for your work, which is by my
opinion very important to Smalltalk, because it allows lowering barriers
to other worlds, and a barrier to Java was specially high.

Best regards
Janko

Joachim Geidel wrote:

> Hello world,
>
> It's now possible to call Java from VisualWorks - and to call back!
>
> Here's a screenshot showing a workspace with code which opens a Swing
> window, the Swing window showing the Smalltalk class hierarchy using
> callbacks, and VisualWorks logging the Java VM's debugging output in the
> Transcript. (The Swing example is taken from Chris Uppal's JNIPort
> documentation.)
>
> The latest version of JNIPort for VisualWorks which enables callbacks is
> in the Cincom Public Repository. This may a bit premature because there
> are still exceptions and JVM crashes with certain combinations of
> options (involving lazy ghost classes and the VFPrintfHook), but I
> couldn't resist. :-)
>
> Joachim Geidel
>
>
>
> ------------------------------------------------------------------------
>

--
Janko Mivšek
Svetovalec za informatiko
Eranova d.o.o.
Ljubljana, Slovenija
www.eranova.si
tel:  01 514 22 55
faks: 01 514 22 56
gsm: 031 674 565

Reply | Threaded
Open this post in threaded view
|

Re: Calling Java - and back

Joachim Geidel
Janko Mivšek schrieb am 10.06.2007 13:33:
> That's just wonderful news! Many thanks for your work, which is by my
> opinion very important to Smalltalk, because it allows lowering barriers
> to other worlds, and a barrier to Java was specially high.

Thank you, Janko! But I think that it's really Chris Uppal who deserves
the honor. He has developed JNIPort for Dolphin Smalltalk, which I have
merely ported to VisualWorks.

Best regards,
Joachim Geidel