2

I am looking for a robust Javascript parser written in Java - by which I mean a Javascript parser that is able to handle most real world Javascript.

I am only interested in parsing Javascript, not in executing it.

I have found Rhino: http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/1eff23a8ee57b991

Am I missing anything? Is this the best solution?

Thank you! Misha

0

1 Answer 1

5

That's probably the best Java one. As you probably know, it's developed by Mozilla (though it's not used by their browsers), and it's also bundled by Sun.

Sign up to request clarification or add additional context in comments.

4 Comments

In other words, it's built-in in Java's standard library, see the package javax.script.
Thank you. Unfortunately JDK 6 is out for me, as Mac support for this platform seems to be ... not quite there :(
@Misha, you don't have to use JDK 6. The download includes js-14.jar, which supports as early as 1.4.
Thank you. I meant I can't use javax.script as that is part of JDK 6. Thank you!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.