Spiga

Showing posts with label eclipse. Show all posts
Showing posts with label eclipse. Show all posts

Not Accessible Due To Restriction On Required Library

Not Accessible Due To Restriction On Required Library

Today, I was working on some java project in my favourite Eclipse editor, when I encountered some unknown problem. It was throwing some error that the calss cannot be accessed due to restriction on required library. This type of error occurs when some classes cannot be loaded into the projects since some restriction rules are being imposed on those classes. Similarly, I got the error like this:




How To solve this Exception:

As this error is coming because of some setting where we are excluding some files. So we need to change that settings. For that, click on the 'Windows' --> 'Preference' and then go to 'Java'-->Compiler-->'Error/Warnings' tab. You will find 'Forbidden reference (access rules):' and its value has been set to 'Error'. So we only need to do is, to change the 'Error' to 'Warning', and all is done.


Default Author Name in Eclipse

Default Author Name in Eclipse


By default, the Eclipse show the file author name as the Windows Id name. This is because, the eclipse read the ${user} variables value from the environment variables and display that variables. So we can change that default values in different name.

Different Ways:
1) By changing the eclipse setting for that. Go to the
  Window -->Preferences -->Java -->Code Style -->Code Templates -->Comments
  Change the Comments format over there, like
  If it is like this:
  /**
  * @author ${user}
  *
  * ${tags}
  */
  Romove this with:
  /**
  * @author Sonu Mishra
  *
  * ${tags}
  */

2) Use the VM arguments -Duser.name=Sonu Mishra. You can set this in the eclipse.ini files of eclipse.

Difference Between Eclipse Ganymede/Galileo/Helios/Indigo

Difference Between Eclipse Ganymede/Galileo/Helios/Indigo

What  is the difference between Eclipse Ganymede/Galileo/Helios/Indigo?
Basically those are just the different versions or the major release  of the eclipse.  So, instead of using the version number, they are using the name like helios or indigo. Since 2006, the Eclipse Foundation has coordinated an annual Simultaneous Release. So the different versions of eclipse till now are: