add documentation for embedding in java app
Reported by Thatcher | March 2nd, 2010 @ 07:32 AM | 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 March 27th, 2010 @ 04:42 AM
lots of good stuff in this thread:
http://groups.google.com/group/envjs/browse_thread/thread/4f84d9b68... -
Thatcher May 12th, 2010 @ 03:02 AM
- 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