Results 1 to 2 of 2

Thread: Scripts

  1. #1
    AndrewM16921 is offline Senior Member
    Join Date
    Jan 2009
    CA, USA
    Rep Power

    Default Scripts

    I'm developing a plugin for a program that is mostly java based, and I'd like to implement a scripting language for this program, possibly using javascript or some other simple scripting language. My question is... are there any libraries out there to like... evaluate the script and run it in java? Not sure if I'm explaining this right. Essentially I want to be able to run the script from Java, then allow the script to call Java functions that already exist in this program. How would I go about doing this? Or would it be easier to have them actually write pieces of a java class then use a class loader to load it in?
    Last edited by AndrewM16921; 02-07-2013 at 06:29 PM.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Voorschoten, the Netherlands
    Blog Entries
    Rep Power

    Default Re: Scripts

    You already have a JavaScript interpreter; it comes bundled with your JDK 1.6 (and higher) distribution.

    kind regards,

    Build a wall around Donald Trump; I'll pay for it.

Similar Threads

  1. Replies: 1
    Last Post: 02-16-2012, 10:24 AM
  2. Ant: Using Ant target to generate shell / batch scripts
    By ignisfatuus in forum Advanced Java
    Replies: 0
    Last Post: 07-22-2011, 10:21 PM
  3. Run ant scripts using ProcessBuilder
    By prsindagi in forum Advanced Java
    Replies: 6
    Last Post: 02-11-2009, 11:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts