Q:

Cannot import Map.Entry

I have problems with import Map.Entry. Even though I have import import java.util.Map.Entry - there is an error :  "The import java.util.Map.Entry cannot be resolved". And  entrySet() method doesnot work. what is the problem? (I use jre8)
import java.io.File;
import java.util.LinkedHashMap;
import java.util.Map;

import java.util.Set;

import org.biojava3.core.sequence.ProteinSequence;
import org.biojava3.core.sequence.io.FastaReaderHelper;

public class Main {

/**
 * @param args
 */
public static void main(String[] args) throws Exception {
    LinkedHashMap<String, ProteinSequence> a = FastaReaderHelper.readFastaProteinSequence(new File("A2RTH4.fasta"));

    for (Map.Entry<String, ProteinSequence> entry : a.entrySet(); //entrySet A map entry (key-value pair). 
    {
        System.out.println( entry.getValue().getOriginalHeader() + "=" + entry.getValue().getSequenceAsString() );
    }
    }

}

A:

for(Map.Entry<String, Integer> entry : someMap.entrySet())

works with import java.util.Map import alone.

