Page 1 of 1

Eclipse ScriptContext miss?

Posted: Thu Mar 15, 2012 5:00 pm
by Darule
If you want to receive support we need this info to help you properly.
ยป Find Revision
L2J Revision 5216:
L2JDP Revision 8729:

Im running windows 7 64bit
Eclipse 3.7.2 64bit
Java SE Development Kit 7u3 64bit
Subclipse 1.8.x

Well my problem is that im getting an error on eclipse package "com.l2jserver.gameserver.script"
file Expression.java at this part "import javax.script.ScriptContext;"
Im getting this error:
"Access restriction: The type ScriptContext is not accessible due to restriction on required library C:\Program Files\Java\jre7\lib\rt.jar"

and in other files that contain this import as well.

Re: Eclipse ScriptContext miss?

Posted: Thu Mar 15, 2012 5:15 pm
by jurchiks
You don't have JDK installed?

Re: Eclipse ScriptContext miss?

Posted: Thu Mar 15, 2012 5:45 pm
by Zoey76
jurchiks wrote:You don't have JDK installed?
Isn't "Java SE Development Kit 7u3 64bit" JDK?

Some related links from the web:
http://stackoverflow.com/questions/9266 ... ed-library
http://old.nabble.com/Try-the-First-ste ... 19168.html
http://outrospective.org/wordpress/2011 ... d-library/
http://www.daniweb.com/software-develop ... 8663/page2
http://www.eclipsetrader.org/ticket/39
http://ianma.wordpress.com/2010/05/03/a ... dk-rt-jar/
http://stackoverflow.com/questions/8601 ... ary-rt-jar

I believe is something missing to configure in Eclipse, many developers said that you can ignore such warnings/errors.

Re: Eclipse ScriptContext miss?

Posted: Thu Mar 15, 2012 6:09 pm
by Darule
Well i found it i had messed up the .settings -.- so for future reference if you come up to this clean your settings with retail ones.

Re: Eclipse ScriptContext miss?

Posted: Thu Mar 15, 2012 6:20 pm
by Zoey76
Darule wrote:Well i found it i has messed up the .settings -.- so for future reference if you come up to this clean your settings with retail ones.
Nice :D