Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

add documentation for embedding in java app

#97

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>);

Reported by Thatcher · March 2nd, 2010 @ 07:32 AM

State: resolved
Milestone: 1.2.x
Assigned to: Thatcher Thatcher

Activity

  1. nickg
  2. Thatcher
    Thatcher
    • 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

    May 12th, 2010 @ 03:02 AM

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.