Scriptable Java Applications
-
(new to Java) Looking into making a Java application scriptable I found that the platform supports it (Scripting for the Java Platform[^]) and a couple of articles: - Scripting for the Java Platform[^] - Sript Thy Java App[^] I wonder if anybody here has any 'real-world' experience with this? Any examples of scriptable Java applications? Thanks in advance.
-
(new to Java) Looking into making a Java application scriptable I found that the platform supports it (Scripting for the Java Platform[^]) and a couple of articles: - Scripting for the Java Platform[^] - Sript Thy Java App[^] I wonder if anybody here has any 'real-world' experience with this? Any examples of scriptable Java applications? Thanks in advance.
Otto Grunf wrote:
I wonder if anybody here has any 'real-world' experience with this?
Don't do it because you think it will make the application 'simpler' or 'easier' to maintain. And most definitely don't do it because you think that non-developers will then be able to modify the behavior of the system.
-
Otto Grunf wrote:
I wonder if anybody here has any 'real-world' experience with this?
Don't do it because you think it will make the application 'simpler' or 'easier' to maintain. And most definitely don't do it because you think that non-developers will then be able to modify the behavior of the system.
jschell wrote:
Don't do it
It certainly looks like nobody else is doing it.
-
jschell wrote:
Don't do it
It certainly looks like nobody else is doing it.
-
I have done it which is why I know about the limitations I noted previously. I even use it in a very, very limited way in the application I currently support.
The application would be a barebone analog of NetLogo[^] , Agent Based Model Simulation environment. One of the requirements that there is a scriptable interface allowing users to setup the simulation, create 'agents' and run the whole thing. It is for demonstrational purposes only so I doubt there would be many users. My other options are to make it in Python or Ruby from the grounds up. Thanks again for the input, I appreciate it.
-
The application would be a barebone analog of NetLogo[^] , Agent Based Model Simulation environment. One of the requirements that there is a scriptable interface allowing users to setup the simulation, create 'agents' and run the whole thing. It is for demonstrational purposes only so I doubt there would be many users. My other options are to make it in Python or Ruby from the grounds up. Thanks again for the input, I appreciate it.
Any body can help ! I want to convert psd file or images to jpeg,jpg or png format Shahid Abbasi
-
(new to Java) Looking into making a Java application scriptable I found that the platform supports it (Scripting for the Java Platform[^]) and a couple of articles: - Scripting for the Java Platform[^] - Sript Thy Java App[^] I wonder if anybody here has any 'real-world' experience with this? Any examples of scriptable Java applications? Thanks in advance.
What do you want exactly please let me know
-
The application would be a barebone analog of NetLogo[^] , Agent Based Model Simulation environment. One of the requirements that there is a scriptable interface allowing users to setup the simulation, create 'agents' and run the whole thing. It is for demonstrational purposes only so I doubt there would be many users. My other options are to make it in Python or Ruby from the grounds up. Thanks again for the input, I appreciate it.
Otto Grunf wrote:
users to setup the simulation, create 'agents' and run the whole thing
As I already mentioned - either you have users who are not programmers or you have users who are. If the later then the question becomes what you are saving by having a script engine versus a framework that can have new modules added. If you don't have users are programmers then a script language will not solve any problems. Which isn't to say that users might learn to be programmers but then they will still be programmers.
-
Otto Grunf wrote:
users to setup the simulation, create 'agents' and run the whole thing
As I already mentioned - either you have users who are not programmers or you have users who are. If the later then the question becomes what you are saving by having a script engine versus a framework that can have new modules added. If you don't have users are programmers then a script language will not solve any problems. Which isn't to say that users might learn to be programmers but then they will still be programmers.
jschell wrote:
a framework that can have new modules added
Now this looks better than messing with scripting engine since Java classes are available to Groovy, Jython and jruby (maybe javascript too?)