Just found gamejs a couple of days ago.
Library looks awesome, the fact that it has simple example app rocks.
When I tried to run ./bin/build.sh on Mac OSX I get this java error
JoelS$ ./bin/build.sh
js: The choice of Java constructor write matching JavaScript argument types ([B) is ambiguous; candidate constructors are:
void write(byte[])
void write(int)
js: org.mozilla.javascript.EvaluatorException: The choice of Java constructor write matching JavaScript argument types ([B) is ambiguous; candidate constructors are:
void write(byte[])
void write(int)
Wrote gamejs/gamejs.min.js
And my gamejs/gamejs.min.js is zero bytes.
Looking at ./bin/build.sh I'd say the problem is while executing this line
EXEC_YABBLER="${java_cmd} -jar ${GAMEJS_HOME}/utils/rhino/js.jar ${GAMEJS_HOME}/utils/yabbler/yabbler.js"
JoelS$ java -version
java version "1.7.0_06"
Java(TM) SE Runtime Environment (build 1.7.0_06-b24)
Java HotSpot(TM) 64-Bit Server VM (build 23.2-b09, mixed mode)
Checking rhino's version, its pretty close to the current release
oelS$ unzip -p ./utils/rhino/js.jar META-INF/MANIFEST.MF
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.1
Created-By: 16.0-b13 (Sun Microsystems Inc.)
Main-Class: org.mozilla.javascript.tools.shell.Main
Implementation-Version: 1.7R2
Implementation-Title: Mozilla Rhino 1.7R2
Implementation-Vendor: Mozilla Foundation
Implementation-URL:
http://www.mozilla.org/rhinoGrabbing the latest 1.7R4 from
https://developer.mozilla.org/en-US/docs/Rhino/Download_Rhinoand replacing js.jar does not change the error
Anybody run into and fixed this error before?
Thanks,
Joel
p.s. If you can't get ./bin/build.sh to run, you can still run the examples by hacking around.
Goto each example/javascript directory and do a
cp -r ../../lib/gamejs* .
And the examples will then run even without getting build.js to create gamejs.min.js