add documentation for embedding in java app
Reported by Thatcher | 2010-03-02 07:32:58 UTC | in 1.2.x
http://groups.google.com/group/envjs/browse_thread/thread/4f84d9b68...
import org.mozilla.javascript.Context;
import org.mozilla.javascript.ContextFactory;
import org.mozilla.javascript.tools.shell.Global;
import org.mozilla.javascript.tools.shell.Main;
...
Context cx = ContextFactory.getGlobal().enterContext();
cx.setOptimizationLevel(-1);
cx.setLanguageVersion(Context.VERSION_1_5);
Global global = Main.getGlobal();
global.init(cx);
Main.processSource(cx, <path to your JS file>);
Comments and changes to this ticket
-

nickg 2010-03-27 04:42:37 UTC
lots of good stuff in this thread:
http://groups.google.com/group/envjs/browse_thread/thread/4f84d9b68... -

Thatcher 2010-05-12 03:02:12 UTC
- State changed from open to resolved
this should be pushed out to main site on friday for now you can find it at
http://3.latest.env-js.appspot.com/doc/guides/#running-embed
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
a javascript browser environment