开发者

Java 1.5 Script Engine

开发者 https://www.devze.com 2022-12-12 10:04 出处:网络
Since Java 1.6 there is this nice Script Engine Manager which let\'s i.e. execute JavaScript scripts in run time. Is there something similar in f开发者_开发知识库unctionality in Java 1.5?The Jakarta B

Since Java 1.6 there is this nice Script Engine Manager which let's i.e. execute JavaScript scripts in run time. Is there something similar in f开发者_开发知识库unctionality in Java 1.5?


The Jakarta BSF lets you run different scripting languages within the Java framework (prior to Java 6). Here's a list of supported languages.


Yes, there is - Mozilla Rhino. Same as with 1.6, actually, you just need to write a bit more integration code yourself.

Here's a tutorial on embedding Rhino into your app.


It should be possible to run JSR223 on Java 5, at least according to this article.

0

精彩评论

暂无评论...
验证码 换一张
取 消