G
gh
I have a short JS program that runs fine from the command line:
#!/usr/bin/java org.mozilla.javascript.tools.shell.Main
print("Hello World");
I saved it as HelloWorld.js. (It's the shabang that makes it a
JavaScript program, not the .js.)
However, if I start it from Safari or Firefox, I get the following
message in the log:
Exception in thread "main" java.lang.NoClassDefFoundError: org/mozilla/
javascript/tools/shell/Main
Any ideas?
(The webserver is Apache on a Mac)
#!/usr/bin/java org.mozilla.javascript.tools.shell.Main
print("Hello World");
I saved it as HelloWorld.js. (It's the shabang that makes it a
JavaScript program, not the .js.)
However, if I start it from Safari or Firefox, I get the following
message in the log:
Exception in thread "main" java.lang.NoClassDefFoundError: org/mozilla/
javascript/tools/shell/Main
Any ideas?
(The webserver is Apache on a Mac)