Embed E in Java

View: New views
3 Messages — Rating Filter:   Alert me  

Embed E in Java

by Ajay Chakravarthy-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi,

 

I am new to E; Trying to embed E code inside a java program. All I want todo I create the sample remote object programming example as documented here

 

http://www.erights.org/elang/concurrency/introducer.html in Java

 

If there is a documentation page somewhere on how todo this, could someone please point me to this? The E-On-Java page is empty and the mailing list does not have a search option.

 

When I try to call the “Introducer.onTheAir()” method it complains that I need to run this method inside  a Runner. So I am trying to create a Vat object using Vat.make(“headless”) and use the invoke method on it. But it throws a nested exception at the “Vat.make” method without providing any further information. Any help in pointing towards a documentation page would be appreciated.

 

 

Thanks

--
Ajay Chakravarthy

Research Engineer
IT Innovation Centre
2 Venture Road
Southampton, SO16 7NP, UK
www: http://users.ecs.soton.ac.uk/ajc2/

tel: +44 23 8076 0834
fax: +44 23 8076 0833

ajc@...
http://www.it-innovation.soton.ac.uk/

 


_______________________________________________
e-lang mailing list
e-lang@...
http://www.eros-os.org/mailman/listinfo/e-lang

Re: Embed E in Java

by Kevin Reid-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Oct 20, 2009, at 9:02, Ajay Chakravarthy wrote:

> If there is a documentation page somewhere on how todo this, could  
> someone please point me to this?

None that I know of, sorry.

One of my project ideas has been to turn E into a JSR 223 scripting  
engine, but I haven't reviewed what would be involved in doing so.

> The E-On-Java page is empty and the mailing list does not have a  
> search option.

Google "site:eros-os.org <your keywords>".

> When I try to call the “Introducer.onTheAir()” method it complains  
> that I need to run this method inside  a Runner. So I am trying to  
> create a Vat object using Vat.make(“headless”) and use the invoke  
> method on it. But it throws a nested exception at the “Vat.make”  
> method without providing any further information. Any help in  
> pointing towards a documentation page would be appreciated.

Try

org.erights.e.develop.exception.ThrowableSugar.leaf(theException)
   to see the original exception

org.erights.e.develop.exception.ThrowableSugar.eStack(theException)
   to see the chain of nested exceptions.

MarkM: Is there a non-historical reason NestedException/
NestedThrowable/etc exist instead of using the Java 1.4  
Throwable.getCause() mechanism?

--
Kevin Reid                                  <http://switchb.org/kpreid/>




_______________________________________________
e-lang mailing list
e-lang@...
http://www.eros-os.org/mailman/listinfo/e-lang

Re: Embed E in Java

by Mark Miller-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Oct 20, 2009 at 9:17 AM, Kevin Reid <kpreid@...> wrote:
> MarkM: Is there a non-historical reason NestedException/
> NestedThrowable/etc exist instead of using the Java 1.4
> Throwable.getCause() mechanism?

Mostly history. The NestedException,.. mechanism predates Java 1.4.
Since it worked, I have never examined the new getCause() API. I do
not know whether or not it would be safe to use instead.

--
Text by me above is hereby placed in the public domain

    Cheers,
    --MarkM
_______________________________________________
e-lang mailing list
e-lang@...
http://www.eros-os.org/mailman/listinfo/e-lang