Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for 
change notification.

The "RunningCassandraInEclipse" page has been changed by RogerSchildmeijer.
http://wiki.apache.org/cassandra/RunningCassandraInEclipse?action=diff&rev1=14&rev2=15

--------------------------------------------------

  
  '''''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'''''.
 
  
- This is because some parts of the Cassandra project are using stuff from the 
com.sun.* package and Eclipse's default behaviour is to report that as an 
error, Intellij IDEA does not. The best solution to fix this I've come up with 
so far, is to change the ”severity level" from error to e.g warning for this. 
To do this right click on your cassandra project -> "Properties" -> "Java 
Compiler" -> "Error/Warnings" and locate "Forbidden reference (access rule)" 
under "Deprecated and restricted API")
+ This is because some parts of the Cassandra project are using stuff from the 
com.sun.* package and Eclipse's "default behaviour" (bug?) is to report that as 
an error, Intellij IDEA does not. By simply reploading the "JRE System Library" 
this will hopefully disappear. To do that, 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" (Thanks Todd Blose for this excellent solution!)
+  
+ Still "Access restrictions" problems?
+ Another solution to fix this is to change the ”severity level" from error to 
e.g warning for this. To do this right click on your cassandra project -> 
"Properties" -> "Java Compiler" -> "Error/Warnings" and locate "Forbidden 
reference (access rule)" under "Deprecated and restricted API")
  
  {{attachment:ForbiddenReference-12.png}}
  

Reply via email to