Note that there are some explanatory texts on larger screens.

plurals
  1. POJava: Scripting language (macro) to embed into a Java desktop application
    primarykey
    data
    text
    <p>I am writing a graphics application in Java. Eventually I would like to build in a scripting language so things are programmable. Which language library do you recommend?</p> <p>Likely suspects are:</p> <ul> <li><a href="http://www.mozilla.org/rhino/" rel="nofollow noreferrer">Rhino</a> (JavaScript)</li> <li><a href="http://jruby.codehaus.org/" rel="nofollow noreferrer">JRuby</a> (Ruby)</li> <li><a href="http://www.jython.org/Project/" rel="nofollow noreferrer">Jython</a> (Python)</li> </ul> <p>Less likely candidates are:</p> <ul> <li>Whip up my own language using <a href="https://javacc.dev.java.net/" rel="nofollow noreferrer">JavaCC</a></li> <li><a href="http://www.keplerproject.org/luajava/" rel="nofollow noreferrer">LuaJava</a> (Lua)</li> <li><a href="http://groovy.codehaus.org/" rel="nofollow noreferrer">Groovy</a></li> <li><a href="http://java.sun.com/javafx/" rel="nofollow noreferrer">JavaFX</a></li> <li><a href="http://www.gimp.org/docs/scheme_plugin/" rel="nofollow noreferrer">Script-Fu</a></li> </ul> <p>The target audience are probably not hardcore programmers, so less arcane language is preferred. My guess is that JavaScript is more acceptable by them even with its quirks just because they've seen it more. </p> <p>Lua seems to be popular in C/C++, but at least LuaJava requires additional .dll/.so, which makes deployment complicated.</p> <p>EDIT: <a href="https://stackoverflow.com/questions/143388/java-scripting-language-macro-to-embed-into-a-java-desktop-application#143421">PhiLho</a> wrote that there's a Java implementation of Lua called <a href="http://code.google.com/p/kahlua/" rel="nofollow noreferrer">kahlua</a>.</p> <hr> <p>Related questions:</p> <ul> <li><a href="https://stackoverflow.com/questions/15349/which-scripting-language-to-support-in-an-existing-codebase">Which scripting language to support in an existing codebase?</a> (in C/C++)</li> <li><a href="https://stackoverflow.com/questions/260/adding-scripting-functionality-to-net-apps">Adding Scripting functionality to .net Apps</a></li> <li><a href="https://stackoverflow.com/questions/137933/what-is-the-best-scripting-language-to-embed-in-a-c-desktop-application">What is the best scripting language to embed in a C# desktop application.</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload