0

I wonder how can I add JS support to the Java application I'm developing. The only thing that matter is that eventually, the JS will be able to invoke Java functions.

While searching the web, I've found that tracemonkey, SquirrelFish extreme and V8 are the best JavaScript engines and therefore I prefer using them only (and exclude Rhino).

Thanks, Eldad.

Eldad
  • 1
  • 1

2 Answers2

0

Google V8 has 2 bindings to the JVM, and it has been the instigator and leader in JavaScript's current performance war.

Of course, you still need to ship a large OS-specific C++ compiled extension in your Java app. But it does work.

For details, see my comment in:

Javascript engine with good interoperability with JVM and CLR

Community
  • 1
  • 1
A R
  • 189
  • 1
  • 3
0

While searching the web, I've found that tracemonkey, SquirrelFish extreme and V8 are the best JavaScript engines

But they're C++ with no apparent Java bindings. Rhino is the only Javascript interpreter I'm aware of that has Java bindings.

Jason S
  • 184,598
  • 164
  • 608
  • 970