ivan_ivanovich_ivanoff
ivan_ivanovich_ivanoff

Reputation: 19453

What is the most painless and multi-platform way to use scripting?

What is the most painless and multi-platform way to use scripting?...
...for things such as

NOTE: I'm in the Java ecosystem.

Sure, there is Apache Ant, which is pretty multi-platform, but it isn't scripting.

Upvotes: 0

Views: 114

Answers (2)

pavium
pavium

Reputation: 15118

I recall reading that Java and Javascript are not not related - so Joachim Sauer's answer puzzles me...

Meanwhile, the original question lists compilation; web application deployment; web server controlling and other misc tasks around web servers.

That's a very broad spectrum, but then the question wasn't 'which the best scripting language?' but 'What is the most painless and multi-platform way to use scripting?' which is not necessarily the same thing.

As BerggreenDK said 'can you elaborate?'

Upvotes: 1

Joachim Sauer
Joachim Sauer

Reputation: 308041

Depends entirely on what environment you're working in.

For Java you can either use the JavaScript ScriptEngine that ships with the Sun JDK. Alternatively you could use Groovy, which is a separate download but works on all modern JREs.

For general scripting I'd personally choose Python, because it's available almost everywhere and reasonably compact, while being an awsome language.

The only scripting environment that you'll find on almost all computers these days (no mater what OS/Hardware) is a JavaScript engine. But usually that's confined to the browser and doesn't really allow interaction with anything outside the browser.

Upvotes: 1

Related Questions