Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147023 - dev-java/java-config-2: better error messages for missing run-java-tool targets that aren't available in each JDK (e.g. apt with 1.5+)
Summary: dev-java/java-config-2: better error messages for missing run-java-tool targe...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 147254 148149
  Show dependency tree
 
Reported: 2006-09-09 23:25 UTC by Alistair Bush (RETIRED)
Modified: 2006-09-18 22:00 UTC (History)
0 users

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


Attachments
patch to display better error msgs for missing java tools (option 1) (option1-to-display-message.txt,619 bytes, patch)
2006-09-17 04:48 UTC, Alistair Bush (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alistair Bush (RETIRED) gentoo-dev 2006-09-09 23:25:16 UTC
apt is the Annotation Processing Tool and is distributed with implementations of java >= 1.5. It is located in the bin directory of the sdk and should be handle the same as java, javac etc etc.

Should this symlink be created by >=virtual/jdk-1.5?  My thinking is that as java-1.4 does not provide apt a user who does not have a 1.5 sdk installed should not have this link.
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-09-10 02:41:26 UTC
apt symlink is there since java-config-2.0.28. even if you installed it with virtual/jdk-1.5 you could try it to run with jdk-1.4 and get the error, so that's not a solution. Patches welcome for a more intelligent error/warning messages :)
Comment 2 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-09-10 16:02:42 UTC
See bug 122516 for another example of what to consider.
Comment 3 Alistair Bush (RETIRED) gentoo-dev 2006-09-17 04:48:13 UTC
Created attachment 97223 [details, diff]
patch to display better error msgs for missing java tools (option 1)

Here is the first option for an improved error message.

As has been stated in #122516 we can not 'choose' to use a external tool if it is not available within the currently selected java vm.

Nichoj also suggested a change to an error message similar to 'Tried to execute javaws from the VM located in 
/etc/java-config-2/current-system-vm, but the executable did not exist'

I like this as being clean but am concerned it would result in a lot of 'lost souls' who would not be able to fixure out the reasons behind it.
Comment 4 Josh Nichols (RETIRED) gentoo-dev 2006-09-18 22:00:16 UTC
Fixed in SVN. Will be included with 2.0.29, see bug #141849. Removing dependency since it's a slightly different issue.