GeeCON Prague 2014*
The moose likes Java in General and the fly likes Most Java Like Run Time/Scriptable Interpreted Language Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Most Java Like Run Time/Scriptable Interpreted Language" Watch "Most Java Like Run Time/Scriptable Interpreted Language" New topic
Author

Most Java Like Run Time/Scriptable Interpreted Language

Gary Furash
Greenhorn

Joined: Nov 03, 2010
Posts: 13
"Languages," "Shells," and the like such as node.js, bash, etc. can be run from a command prompt, with each line intepreted as you go, or from a single text file (*.sh). I'm curious if there is any very-Java like equivalent in terms of syntax, being able to access libraries, etc. I would have guessed Beanshell but the project has been dead for a while. Groovy is interesting but it's is own language. Thanks in advance.
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

You also can run java by prompt with the command "java".

But your first need to create a class and compile it. The class will be like your script.


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Gary Furash
Greenhorn

Joined: Nov 03, 2010
Posts: 13
Thank you.

I also just found out that BeanShell lives! BeanShell, to the best of my knowledge, was the most Java-like of the JVM scripting languages. It was abandoned back around 2006, but is alive and well on GitHub as BeanShell2.
 
GeeCON Prague 2014
 
subject: Most Java Like Run Time/Scriptable Interpreted Language