#86 ✓resolved
Eric Clemmons

"load" fails when calling scripts from command-line

Reported by Eric Clemmons | January 13th, 2010 @ 04:58 PM | in 1.2.x

Suppose I have a script script.js that consists of:

    print(typeof Envjs);

Calling java -jar env-js/dist/env-js.jar script.js results in:


However, simply running java -jar env-js/dist/env-js.jar and pasting in load('env-js/dist/env.rhino.js'); print(typeof Envjs); results in:


I've poured over the test-prototype.sh file (along with others) and it seems I'm not doing anything different than: java -cp env-js.jar org.mozilla.javascript.tools.envjs.Main test.js

I apologize if this is user error in anyway.

Comments and changes to this ticket

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.

New-ticket Create new ticket

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

People watching this ticket