mP.
mP.

Reputation: 18266

Java equivalent ( or similar ) to powershell

I am aware of JMX, however I would not consider it anywhere near or equivalent to PowerShell or some other command-line/shell. For instance, JMX Beans and JConsole seem more like a GUI, where the user can perform operations only provided they are directly available by said bean. You cannot do more complex operations like filter, pipe, etc. This is where command-lines/shells like PowerShell go a little further.

Can anyone make any suggestions towards creating something more like PowerShell and less like JMX?

What FOSS libraries can help me get there ?

Upvotes: 6

Views: 1634

Answers (3)

Ross Judson
Ross Judson

Reputation: 1142

Apache Karaf has a console system built-in that's easy to extend. I don't know if it can call JMX without a bit of work, but I do know it's very easy to add commands to it.

Not as comprehensive as powershell, but it might be good enough to get the job done for you.

Upvotes: 0

Angel O'Sphere
Angel O'Sphere

Reputation: 2666

You also can use Groovy or Scala, both have a "shell" feature. In fact most dynamic languages for the JVM have a shell like interpreter.

Upvotes: 0

MJB
MJB

Reputation: 9399

Have you tried Beanshell ?

Upvotes: 7

Related Questions