Skip to main content

Posts

Showing posts with the label Eclipse

Eclipse crashing and not starting

Problem: After restarting Eclipse, it crashes immediately and asks me to check C:\Users\username\Adobe Flash Builder 4.6\.metadata\.log In log it shows following error: !ENTRY org.eclipse.osgi 4 0 2013-02-13 11:53:46.760 !MESSAGE Application error !STACK 1 org.eclipse.swt.SWTError: Cannot initialize Drop     at org.eclipse.swt.dnd.DND.error(DND.java:266)     at org.eclipse.swt.dnd.DND.error(DND.java:227)     at org.eclipse.swt.dnd.DropTarget. (DropTarget.java:142)     at org.eclipse.ui.internal.EditorSashContainer.addDropSupport(EditorSashContainer.java:542)     at org.eclipse.ui.internal.EditorSashContainer.createControl(EditorSashContainer.java:534)     at org.eclipse.ui.internal.EditorAreaHelper. (EditorAreaHelper.java:41)     at org.eclipse.ui.internal.WorkbenchPage.init(WorkbenchPage.java:2507)     at org.eclipse.ui.internal.WorkbenchPage. (Workbench...

OutOfMomory on running Ant build in Eclipse

Running Ant build via Eclipse may throw following error: Error: Java heap space java.lang.OutOfMemoryError: Java heap space To overcome this error, we need to increase the maximum heap size for JVM. Complete steps are: Select Run > External Tools > External Tools Configuration... Select New launch configuration button. Give any suitable name. On "Main" tab, specify build file. For e.g., C:\project1\build.xml On "Targets" tab, specify targets and their orders to run. JRE tab, select "Separate JRE:" and specify the JRE installed. In my case it is jdk1.6.0_17. In "VM arguments", add -Xmx500M for 500 MB of heap space. Press Apply button. Press Run or Close button.