Hi Liangzhao, For some reason, Eclipse believes there are access restrictions imposed on that class. After doing some googling, it seems the most common solution is to simply reload the standard Java APIs. To do this:
1) go to your build path settings for your cassandra project in Eclipse, and under the libraries tab, select "JRE System Library" and click the "Remove" button 2) re-add the JRE System Library using "Add Library" If you refresh the project after doing that, the problem should go away. -- Todd On Fri, Apr 16, 2010 at 6:14 AM, Liangzhao Zeng <liangzhao.z...@gmail.com>wrote: > Hi, > > I am using OS X 10.6.3 and Eclipse to compile the cassandra 0.6 code. > Everything is fine but GCInpector.java and it says: > > Description Resource Path Location Type > Access restriction: The method getDuration() from the type GcInfo is not > accessible due to restriction on required library > /System/Library/Frameworks/ > JavaVM.framework/Versions/1.6.0/Classes/classes.jar GCInspector.java > /cassandra-0.6/src/java/org/apache/cassandra/service line 108 Java > Problem > > > Any idea? > > Liangzhao >