0

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.

5 Answers5

2

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

schraffson
  • 21
  • 2
0

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

VGaur
  • 705
  • 1
  • 9
  • 19
0

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

Community
  • 1
  • 1
  • The root cause was that your project didn't have the JDK. Adding the JDK regardless of the IDe you use solved the problem. You didn't configure the IDE accordingly (which tends to happen with Eclipse), but that's another problem... – Luiggi Mendoza Jun 18 '14 at 19:59
  • @LuiggiMendoza I had reconfigured the jdk in the build path multiple times without change, only when I changed the IDE was the problem resolved – William Gourley Jun 19 '14 at 13:11
0

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.

Bhajan
  • 19
  • 3
0

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