Showing posts with label Eclipse. Show all posts
Showing posts with label Eclipse. Show all posts

Friday, August 11, 2017

Java 1.7 is not visible in eclipse preforences ?

To add Java 1.7 manually in preforences , we have to goto workspace
C:\Workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings
and edit file org.eclipse.jdt.core.prefs and change below

org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.source=1.7



And restart eclipse , then it will set Java compiler as 1.7

Thursday, August 10, 2017

How to fix eclipse outOfMemory or permgen space issue?

While running applicatiom from eclipse, most of the time we used to get the error OutOfMemoryError: Permgen space.

To fix this we have to increase the size of XXMaxPermSize in eclipse.ini file of eclipse installation folder.

--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m