tools.jar [message #247421] |
Wed, 05 September 2007 10:20  |
Eclipse User |
|
|
|
Hi,
I'm trying to use JAXB in a way which requires the usage of tools.jar (for
annotations). I've associated my project with JDK 1.6 (not the JRE), but it
still cannot find the tools jar. I looked in the 'JRE System Library' and
indeed tools.jar is not there.
Do I really have to add tools.jar to my classpath manually? This solution
requires that I add this jar to my project's repository, so that everyone
have it... Is there a better way?
Thanks,
Zohar.
|
|
|
Re: tools.jar [message #247447 is a reply to message #247421] |
Wed, 05 September 2007 11:23  |
Eclipse User |
|
|
|
Originally posted by: wharley.bea.com
"zohar" <david_fire4@hotmail.com> wrote in message
news:fbmdvh$4nk$1@build.eclipse.org...
> Hi,
> I'm trying to use JAXB in a way which requires the usage of tools.jar (for
> annotations). I've associated my project with JDK 1.6 (not the JRE), but
> it still cannot find the tools jar. I looked in the 'JRE System Library'
> and indeed tools.jar is not there.
> Do I really have to add tools.jar to my classpath manually? This solution
> requires that I add this jar to my project's repository, so that everyone
> have it... Is there a better way?
You could also leave it in the JDK, and refer to it with a classpath
variable. That solution would require everyone to manually create the
classpath variable in their workspace.
Note that putting tools.jar into your repository may not be legal, depending
on how your project is published. Check with the Sun license.
The bottom line is that tools.jar is not part of the JRE; it's a Sun
proprietary file that is distributed with certain versions of the JDK. So
it's not really much different than, say, an Oracle database driver or such,
and it ends up having to be treated the same way.
|
|
|
Powered by
FUDForum. Page generated in 0.04592 seconds