Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 147023

Summary: 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+)
Product: Gentoo Linux Reporter: Alistair Bush (RETIRED) <ali_bush>
Component: Current packagesAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 147254, 148149    
Attachments: patch to display better error msgs for missing java tools (option 1)

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.