This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Java in General and the fly likes eval(scriptFile):  The script has a constructor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "eval(scriptFile):  The script has a constructor" Watch "eval(scriptFile):  The script has a constructor" New topic
Author

eval(scriptFile): The script has a constructor

Rooks Forgenal
Ranch Hand

Joined: Jun 05, 2009
Posts: 82
Does the eval in ScriptEngineManager allow the passing of arguements for script constructors?
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14917
    
  26

What scripting language do you intend to use? Can you give an example of what you mean by a "script constructor"?


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Rooks Forgenal
Ranch Hand

Joined: Jun 05, 2009
Posts: 82
Ruby.
 
jQuery in Action, 3rd edition
 
subject: eval(scriptFile): The script has a constructor
 
It's not a secret anymore!