William Gourley
William Gourley

Reputation: 25

java.util.Map$Entry unresolved

I'm writing a mod (attempting) and an error I have never before seen pops up on my package deceleration screaming

"The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files"

As far as I know requesting help in the direction of minecraft is a no no but I think this qualifies as a java question

package com.DGmoN.mysticPower.items;

import java.util.Set;

import com.DGmoN.mysticPower.lib.Strings;

import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemPickaxe;
import net.minecraft.item.ItemTool;

public class MPIPickAxe extends ItemPickaxe {

    protected MPIPickAxe() {
        super(ToolMaterial.EMERALD);
        setUnlocalizedName("MysticPickAxe");
        setTextureName(Strings.MODID + ":" + getUnlocalizedName());
        setCreativeTab(CreativeTabs.tabMisc);
    }

}

Running jdk1.8.0_05 Eclipse Indigo, I haven't used any thing I know of in the direction of the Map thingy.

Upvotes: 0

Views: 628

Answers (5)

yogender
yogender

Reputation: 1

project > properties>libraries> select jre system libraries>edit>installed jre>select >edit> and in jre home try to change lower version of java like JRE home(C:\Program Files (x86)\Java\jre1.5.0_22) and JRE name jre1.5.0_22 and finish most probably the problem resolved

Upvotes: 0

Bhajan
Bhajan

Reputation: 19

I got the same error when I moved my project from JRE6 to JRE8 directly in eclipse. To resolve this error, I have installed JRE7 and first compiled the code with JRE7 and later with JRE8. My issue got resolved, give a try if this helps you.

Upvotes: 0

William Gourley
William Gourley

Reputation: 25

I have found a different question, the error is similar, and it works, the problem wasnt my jdk but my IDE. Ive changed to Kepler and all my problems are gone

Upvotes: 0

schraffson
schraffson

Reputation: 21

You're pointing to the wrong jdk, check jdk path and clean build.

Upvotes: 2

VGaur
VGaur

Reputation: 715

This error only occurs when you don't point to correct jdk. Check jdk path and clean build your project.

Upvotes: 0

Related Questions