swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Swarm and Java Applet


From: Huisman G
Subject: Re: Swarm and Java Applet
Date: Mon, 26 Mar 2001 12:08:05 +0200 (CEST)

On 25 Mar, Marcus G. Daniels wrote:
>>>>>> "GNF" == Gustavo Nucci Franco <address@hidden> writes:
> 
> GNF> And that’s the question: is it possible to run a Swarm
> GNF> application in an Applet extension? I have designed my own
> GNF> graphical interface to show the animation and the model’s
> GNF> control. But my first problem is that the java.lang cannot find
> GNF> the swarm/SwarmEnvironment class. 
> 
> Swarm can work in Mozilla (e.g. Netscape 6), as a XPCOM plugin.  Right
> now, the only languages I've really tested in this framework are
> JavaScript and C++.  For Java, there are two possibilities: 1) simply
> load the existing Java/Swarm DLLs into Mozila by using a privileged
> XPCOM startup call, and 2) use the Java XPCOM layer that Sun is
> developing.  At this point, I suspect #2 would be pretty fragile and
> hard to get running -- as of a couple weeks ago it was, at least.
> 
> GNF> So, I could not initialize the SwarmEnvironment as a
> GNF> java.lang.Object. Is there any alternative?  Won't any other
> GNF> Swarm class work such as SwarmImpl?
> 
> SwarmEnvironment, etc. are declared in /Swarm-2.1.1/share/swarm/swarm.jar
> and defined in /Swarm-2.1.1/bin/javaswarm.dll.  Because there is native
> code involved, a typical Java applet isn't possible.
> 
>                   ==================================
>    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.
> 

-- 
Gert Huisman                         fac. Exacte Wetenschappen (div. W&I)
email:     address@hidden             Vrije Universiteit Amsterdam
telefoon:  +31 20 4447806            De Boelelaan 1081a, k. S4.14
fax:       +31 20 4447653            1081 HV  Amsterdam, the Netherlands


                  ==================================
   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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]