0

The Karaf 4 documentation mentions the ability to script:

It’s possible to create objects to create commands "on the fly":

karaf@root()> addcommand system (($.context bundle) loadClass java.lang.System)

However this does not work, and displays the following error message:

Command not found: addcommand

How to fix it ?

Thanks.

ShawnE
  • 1
  • 1

1 Answers1

0

The command 'addcommand' dose not exists!

This works:

system=(($.context bundle) loadClass java.lang.System)

$system currentTimeMillis

MHU
  • 21
  • 5