Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 865393 - dev-java/ant{,-core}: 1.10.9-launch.patch - Suppress 'unable to determine tools.jar location' warning
Summary: dev-java/ant{,-core}: 1.10.9-launch.patch - Suppress 'unable to determine too...
Status: RESOLVED DUPLICATE of bug 682136
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor with 1 vote (vote)
Assignee: Java team
Depends on:
Blocks: 682136
  Show dependency tree
Reported: 2022-08-16 14:42 UTC by James L. Hammons
Modified: 2024-01-31 09:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description James L. Hammons 2022-08-16 14:42:00 UTC
tools.jar has been removed from JDK 9+ and ant versions from 1.10.x on fully support this--therefore this warning is spurious for installations where JDK 9 and above are being utilized.

If the warning needs to stay in because some developers are still using JDK 8 and below, then at the very least there needs to be a check for the correct version of the JDK ant is using and suppress the warning if it detects JDK 9 and above.

I feel I should mention that this warning is not from upstream but comes from the Gentoo side.

Opened because bug #730456 said to.  :-)  Also, bug #682136 is relevant and could be closed once this one is resolved.
Comment 1 Alex Barker 2022-08-25 19:17:36 UTC
I am sure no one cares but there are patches to fix this attached to bug #730456.
Comment 2 Volkmar W. Pogatzki 2024-01-31 08:31:01 UTC
persists with dev-java/ant-1.10.14-r1

$ ant -version
Warning: Unable to determine tools.jar location.
  If build fails because sun.* classes could not be found,
  Make sure you are using a JDK, not JRE as your user/system VM.
  and that you have java-config version 2.0.30 or above installed.
Apache Ant(TM) version 1.10.14 compiled on Januar 23 2024
Comment 3 Volkmar W. Pogatzki 2024-01-31 09:42:52 UTC

*** This bug has been marked as a duplicate of bug 682136 ***