thatcher / env-js

A pure-JavaScript browser environment.
http://www.envjs.com/
463 stars 75 forks source link

No env-js.jar #12

Open cefn opened 14 years ago

cefn commented 14 years ago

I can't find a way to get env-js.jar at present.

The zip file from http://www.envjs.com/release/undefined doesn't include it. The basic ant build from the zip download doesn't create it. I can't find it in github. Nevertheless, everything all over envjs.com recommends its use for emulating the browser most effectively, for example this page... http://www.envjs.com/doc/guide-1.0.x

In my envjs directory, expanded and after calling ant and make ... envjs$ find . -name '*.jar' ./rhino/jline.jar ./rhino/js.jar

It's also missing from the website - links promising env-js.jar go to a dead end. http://www.envjs.com/release/1.0.x

What did I miss?

client9 commented 14 years ago

I don't understand why envjs.com is incorrect or who even runs it, but the best way to get the jar is to make one manually:

git clone http://github.com/thatcher/env-js cd env-js ant concat (or ant zip)

Failing that, I could post a snapshot jar.

thatcher commented 14 years ago

sorry, the new site is almost ready. envjs.jar is deprecated and only js.jar is needed. env.rhino.js needs to be built from source as nick mentioned, we will be provided official releases as part of the new site.

cefn commented 14 years ago

I don't know if js.jar is equivalent to env-js.jar. Initially, I tried to run it in this way, and found that load() and print() weren't defined.

I had to write this Java harness for invoking Contexts based on a useful comment in the Google Group describing how to bring in the necessary Rhino Shell bindings... http://pastebin.com/zAmJpKNC

At present I'm trying to run the Rhino debugger. Since this requires a specific Main class to be invoked, I don't know how to ensure that all the relevant bindings are there if js.jar doesn't provide them.