fetchexc cannot find openjdk java

Bug #659466 reported by Brian Candler on 2010-10-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
fetchexc (Ubuntu)
High
Unassigned

Bug Description

Binary package hint: fetchexc

fetchexc reports "No suitable java program found" when run. However I have openjdk-6 installed.

Fix was simple:

--- /usr/bin/fetchexc.orig 2010-10-12 20:43:32.531276729 +0100
+++ /usr/bin/fetchexc 2010-10-12 20:44:03.561276506 +0100
@@ -2,6 +2,7 @@
 set -e

 for java in /usr/bin/gij /usr/lib/jvm/java-6-sun/bin/java \
+ /usr/lib/jvm/java-6-openjdk/jre/bin/java \
     /usr/lib/jvm/java-1.5.0-sun/bin/java; do
     if [ -x $java ]; then
         exec $java -jar /usr/share/java/fetchexc.jar "$@"

However I wonder if it should just point at /usr/bin/java and let /etc/alternatives take care of it?

System details:
Ubuntu 10.04.1 LTS x86_64
fetchexc 2.0-2

Brian Candler (b-candler) wrote :

Problem still exists in 10.10. The upgrade installed package fetchexc 2.0-3 and I had to re-edit /usr/bin/fetchexc

This time I just added /usr/bin/java to list of paths checked, and that's fine too.

Bryce Harrington (bryce) wrote :

Still returns "No suitable java program found" when run on 12.04. Editing /usr/bin/fetchetc to add /usr/bin/java works around the problem for me as well.

Changed in fetchexc (Ubuntu):
importance: Undecided → High
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers