However, I'm completely lost when it comes to running most anything
Java, being a frontend web developer and a LAMP dev on the side. I've
pored over the Mozilla docs for Rhino, and I couldn't come up with
anything about how to install Rhino. The closest I found was here:
Here's my Java information:
$ java -version
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)
So, how can I install Rhino? I downloaded 1.7R1, and don't know what I
need to do next.
Thanks,
Thomas
>>I'm looking to run JS on the server.
Can you elaborate more, what exactly do you want to use rhino for?
A quick feedback would be: if you want to use Rhino, you have to know the basics of Java, a quick reference lies in http://java.sun.com/tutorial
Rhino is not a ready-made product that you install and run, but it is a library you use it along with your code.
Please don't hesitate to ask, if you have further questions,
Ahmed
Thanks,
Thomas
_______________________________________________
dev-tech-js-engine-rhino mailing list
dev-tech-js-...@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
Thanks for the patience. I want to use Rhino to develop web apps with the
benefit of being able to leverage existing Java libraries. What sparked my
interest was an interview with Steve Yegge who was tasked with porting
Rails to JavaScript and Google, and who chose Rhino for the project (I
don't intend to port Rails). I've considered other JS engines, but a large
standard library is essential for web app programming, and Rhino seems to
be the best in that arena.
My understanding is that with Rhino, my code will be JavaScript, but that
I'll have to know enough Java to understand library APIs so I can take
advantage of them from within Rhino.
Thomas
P.S. Sorry I re-sent this, I didn't CC the mailing list on the first send.
>> my code will be JavaScript, but that I'll have to know enough Java to understand library APIs so I can take advantage of them from within Rhino.
The usual Rhino usage: your main code is Java, and you embed Rhino to be able to process JavaScript logic. However, you can implement needed functions/properties in Java and call them from JavaScript.
In both ways, you have to know how to implement some logic in Java.
Again, we are here if you need help,
I was under the impression that Rhino could be used as a stand-alone JS
engine, and that by running on the JVM, it could seamlessly work with
existing libraries. Is there any good reason that all logic couldn't be
in JavaScript (other than accessing library APIs)?
Thomas
Thomas
I'm not sure if I have the exact syntax or sequence of arguments, but
that is basically the idea. Good luck. And if you want to do interactive
js, then I highly recommend adding incorporating the jline.ConsoleRunner
which makes it easier.
Terry
Thomas