Cannot Resolve Symbol: Runtime.getRuntime().gc()
843785Jan 28 2009 — edited Jan 29 2009Hi
I'm a Java noob, and this is driving me insane trying to get this working, I'm trying to invoke garbage collection with:
Runtime.getRuntime().gc();
but on compiling I get the error:
------- Compiler says -------
Scroller.java -> line 50
cannot resolve symbol
symbol : method gc ()
location: class java.lang.Runtime
Any ideas?
Thanks