wtf @ Eclipse error

Sooo, I’m getting this weird error in Eclipse:

Access restriction: The type Vector2d is not accessible due to restriction on required library /System/Library/Java/Extensions/vecmath.jar

It happened after I reinstalled my machine, because I replaced the hdd with an ssd, the app compiles, even though that errors is shown, but how do I get rid of it?

Perhaps the user running Eclipse does not have access rights in that location? Alternative possibility: maybe another library you use also uses a vecmath.jar library, but of a different version?

Well, it’s still able to compile and run the source code though. :confused: It’s all code I’ve written myself, so no other libs are being used. ^^

That should be it. Sounds like there are different versions of vecmath around on your machine. One in your machine java extension dir and the other maybe floating around somewhere in your classpath.

Well…

Regenuluz@Medusa ~ $ locate vecmath.jar
/System/Library/Java/Extensions/vecmath.jar

So there’s only one vecmath.jar file on my system. ^^

Huh … mhh…
Not sure how it even compiles when the error sais Vector2d is not accessible.

Hmm look what I googled :smiley:

Maybe that helps? :confused:

That worked! :slight_smile:

I wonder what caused it to complain though, seeing as it’s the exact same location that has been added xD