jikes-sun doesn't recognize jdk 1.5.0.06 installed via java-package

Bug #41802 reported by Matthew Van Gundy
4
Affects Status Importance Assigned to Milestone
jikes-contrib (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Description:
The .jar files that jikes-sun looks for to determine the JPATH variable get installed under jre/lib instead of lib with this version. Steps to reproduce and a patch are included below.

Ubuntu Version: 5.10
jikes-sun Version: 0.8

Steps to Reproduce:
1. Download Sun jdk-1_5_0_06-linux-i586.bin
2. $ chmod +x jdk-1_5_0_06-linux-i586.bin
3. $ fakeroot make-jpkg jdk-1_5_0_06-linux-i586.bin
4. $ sudo dpkg -i sun-j2sdk1.5_1.5.0+update06_i386.deb
5. $ jikes-sun

# Begin jikes-sun output
----- Cannot find SUN Java (created with java-package)
----- or Blackdown files. Please file a bug against jikes-sun
# End jikes-sun output

Patch:
matt@osuif:~/scm/src/dotfiles$ diff -ud /usr/bin/jikes-sun ~/local/bin/jikes-sun
--- /usr/bin/jikes-sun 2005-06-01 13:27:02.000000000 -0700
+++ /home/matt/local/bin/jikes-sun 2006-04-27 15:38:54.000000000 -0700
@@ -6,6 +6,10 @@
                        JPATH=/usr/lib/j2${path_type}${version}-sun/lib
                        break 2
                fi
+ if [ -e /usr/lib/j2${path_type}${version}-sun/jre/lib/rt.jar ]; then
+ JPATH=/usr/lib/j2${path_type}${version}-sun/jre/lib
+ break 2
+ fi
        done
 done

Daniel T Chen (crimsun)
Changed in jikes-contrib:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.