Eclipse

Find and remove empty or blank lines in Eclipse

If you need to remove empty or blank lines in Eclipse, follow the instructions below:

  • Open the find/replace window (Ctrl + F).
  • Check the Regular Expressions checkbox.
  • In the Find field, enter:
    ^\s*\n

Eclipse and Failed to create the Java Virtual Machine

One day I went to open Eclipse (Helios) as usual and was surprised to see that a dialoge box popped up saying: