Tag Info

New answers tagged

5

This is how you can achieve what you try to do: Needs["JLink`"] InstallJava[] LoadJavaClass["java.lang.Runtime"] runtime = Runtime`getRuntime[] runtime@freeMemory[] I think the reason that you can not instanciate a java.lang.Runtime object the usual way is that it is a singleton and the only way to get a handle to the one instance is the ...



Top 50 recent answers are included