2

I'm using Eclipse, and I'm developing a simple applet that's demonstrating usage of cookies.

In order to use cookies, I had to add "plugin.jar" to my build path. Now, that jar file is:

  1. big (1.7 MB)
  2. already present in my jre folder (C:\Program Files\Java\jre6\lib)

Is there a way to use that plugin.jar in my project, but without need to add it to my build path, rather "point to it" in the jre folder (user anyway has to have jre in order to run applet)?

tshepang
  • 12,111
  • 21
  • 91
  • 136
guest86
  • 2,894
  • 8
  • 49
  • 72

1 Answers1

0

Placing a jar in jre/lib does not help, you should put it in jre\lib\ext instead.

Or you can place it anywere and change JRE config in Eclipse as follows

Windows -> Preferences -> Java -> Installed JREs -> Choose JRE -> Edit -> Add External Jar
Evgeniy Dorofeev
  • 133,369
  • 30
  • 199
  • 275
  • Doing so gives me "Access restriction: The type PersistenceService is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\javaws.jar" – guest86 Jan 24 '13 at 09:11