• Post Reply Bookmark Topic Watch Topic
  • New Topic

Calling Java methods from JavaScript running in ScriptEngine  RSS feed

 
Tay Thotheolh
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I have an application that runs Java 6 ScriptEngine running e.g. 'example.js'. Besides the application running ScriptEngine, it runs other Java methods and codes. Is it possible for example.js to contain calls to Java methods. Since ScriptEngine is running inside the same JVM as the Java methods is there a possibility ?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://java.sun.com/developer/technicalArticles/J2SE/Desktop/scripting/#7

(And sections following it.)
 
Tay Thotheolh
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks alot.

Would take a look.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!