Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Cannot Resolve Symbol: Runtime.getRuntime().gc()

843785Jan 28 2009 — edited Jan 29 2009
Hi


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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 26 2009
Added on Jan 28 2009
7 comments
487 views