Hi Felix users,

https://felix.apache.org/documentation/subprojects/apache-felix-gogo/rfc-147-overview.html
 (which has quite some formatting issues, btw).
> // add all public methods on java.lang.System as commands:
> 
> g! addcommand system (loadClass java.lang.System)
> g! system:getproperties
> sun.io.unicode.encodingUnicodeLittle
> java.version        1.5.0_19
> java.class.path     bin/felix.jar
> java.awt.graphicsenvapple.awt.CGraphicsEnvironment
> user.language       en
> sun.os.patch.level  unknown
> os.version          10.6.2
> [snip]

g! addcommand (loadClass java.lang.System)
gogo: CommandNotFoundException: Command not found: loadClass

What am I doing wrong? I have the three org.apache.felix.gogo.* jars from 
https://felix.apache.org/downloads.cgi

I actually want to try to call Runtime.getInstance().maxMemory(). Is this 
possible?

Best, Dan.

Reply via email to