Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  wtf @ Eclipse error  (Read 422 times)
0 Members and 1 Guest are viewing this topic.
Offline Regenuluz
« Posted 2013-03-07 14:57:02 »

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

1  
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?

Online Grunnt

JGO Knight


Medals: 22
Projects: 6


Complex != complicated


« Reply #1 - Posted 2013-03-07 16:09:20 »

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?

Grunnt Games  Play my 4K games or follow development of Constellation Control, a back-to-basics 4X RTS.
Offline Regenuluz
« Reply #2 - Posted 2013-03-08 08:00:12 »

Well, it's still able to compile and run the source code though. :/ It's all code I've written myself, so no other libs are being used. ^^
Games published by our own members! Check 'em out!
Play the free demo of Revenge of the Titans!
Offline seismic

Junior Member


Medals: 2



« Reply #3 - Posted 2013-03-08 08:04:09 »

Alternative possibility: maybe another library you use also uses a vecmath.jar library, but of a different version?

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.
Offline Regenuluz
« Reply #4 - Posted 2013-03-08 08:07:35 »

Well...

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


So there's only one vecmath.jar file on my system. ^^
Offline seismic

Junior Member


Medals: 2



« Reply #5 - Posted 2013-03-08 08:12:31 »

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

Hmm look what I googled Cheesy
Quote
There's another solution that also works. I found it on this forum:

Go to the Build Path settings in the project properties.
Remove the JRE System Library
Add it back; Select "Add Library" and select the JRE System Library. The default worked for me.
This works because you have multiple classes in different jar files. Removing and re-adding the jre lib will make the right classes be first. If you want a fundamental solution make sure you exclude the jar files with the same classes.

Maybe that helps? :confused:
Offline Regenuluz
« Reply #6 - Posted 2013-03-08 08:40:53 »

That worked! Smiley

I wonder what caused it to complain though, seeing as it's the exact same location that has been added xD
Pages: [1]
  ignore  |  Print  
 
 

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (78 views)
2013-05-17 21:29:12

alaslipknot (89 views)
2013-05-16 21:24:48

gouessej (121 views)
2013-05-16 00:53:38

gouessej (113 views)
2013-05-16 00:17:58

theagentd (126 views)
2013-05-15 15:01:13

theagentd (113 views)
2013-05-15 15:00:54

StreetDoggy (156 views)
2013-05-14 15:56:26

kutucuk (179 views)
2013-05-12 17:10:36

kutucuk (179 views)
2013-05-12 15:36:09

UnluckyDevil (186 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.093 seconds with 20 queries.