[Bug 234690] Re: 54jde.el registers wrong java version

2008-07-09 Thread Michael W. Olson
I've made a new Debian package with these fixes and have contacted my
Debian sponsor to get it uploaded.  Once it makes it into debian
unstable, it will be safe to take it directly from there into Ubuntu.

-- 
54jde.el registers wrong java version
https://bugs.launchpad.net/bugs/234690
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 234690] Re: 54jde.el registers wrong java version

2008-06-24 Thread Reinhard Tartler
** Changed in: jde (Ubuntu)
 Assignee: (unassigned) = Michael W. Olson (mwolson)
   Status: Triaged = In Progress

-- 
54jde.el registers wrong java version
https://bugs.launchpad.net/bugs/234690
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 234690] Re: 54jde.el registers wrong java version

2008-06-23 Thread Michael W. Olson
Reinhard Tartler [EMAIL PROTECTED] writes:

 On my system, `/usr/sbin/update-java-alternatives --list` gives the
 following output:

 java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk
 java-6-sun 63 /usr/lib/jvm/java-6-sun
 java-7-icedtea 1060 /usr/lib/jvm/java-7-icedtea

 So using the 2nd coloumn for this is not a good indicator for the
 version. However calling $found_jdk/bin/java -version takes more time
 than acceptable. I'm out of ideas here how to fix it properly. I'd
 therefore suggest to take out this convenience function. Its intention
 is of course to help new users. However, it doesn't help when its
 broken.

I'm going to try to fix this on Thursday.

-- 
|   Michael Olson  |  FSF Associate Member #652 |
| http://mwolson.org/  |  Hobbies: Lisp, HCoop  |
| Projects: Emacs, Muse, ERC, EMMS, ErBot, DVC, Planner |
`---'

-- 
54jde.el registers wrong java version
https://bugs.launchpad.net/bugs/234690
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 234690] Re: 54jde.el registers wrong java version

2008-05-25 Thread Reinhard Tartler
As quick reference, here the code for 'debian-jde-register-jdks' as of
version 2.3.5.1-4ubuntu1:

  ;; Register all available JDKs on the system
  (defun debian-jde-register-jdks ()
Register all available JDKs automatically given the output of
update-java-alternatives.
(when (file-executable-p /usr/sbin/update-java-alternatives)
  (with-temp-buffer
(shell-command /usr/sbin/update-java-alternatives --list t)
(goto-char (point-min))
(let (jdks)
  (while (and ( (point) (point-max))
  (looking-at
   \\([^ \n]+\\) \\([^ \n]+\\) \\([^ \n]+\\)$))
(let ((name (match-string 1))
  (version (match-string 2))
  (jdk-path (match-string 3)))
  (when (string-match \\`[0-9]\\{4\\}\\' version)
(setq version (concat
   (substring version 0 1) .
   (number-to-string
(string-to-number (substring version 1 3)))
   . (substring version 3 4
  (add-to-list 'jdks (cons version jdk-path)))
(forward-line 1))
  (jde-set-jdk-dir-type 'jde-jdk-registry (nreverse jdks))
  (debian-jde-register-jdks))

-- 
54jde.el registers wrong java version
https://bugs.launchpad.net/bugs/234690
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 234690] Re: 54jde.el registers wrong java version

2008-05-25 Thread Reinhard Tartler
On my system, `/usr/sbin/update-java-alternatives --list` gives the
following output:

java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk
java-6-sun 63 /usr/lib/jvm/java-6-sun
java-7-icedtea 1060 /usr/lib/jvm/java-7-icedtea

So using the 2nd coloumn for this is not a good indicator for the
version. However calling $found_jdk/bin/java -version takes more time
than acceptable. I'm out of ideas here how to fix it properly. I'd
therefore suggest to take out this convenience function. Its intention
is of course to help new users. However, it doesn't help when its
broken.

** Changed in: jde (Ubuntu)
   Importance: Undecided = Low
   Status: New = Triaged

-- 
54jde.el registers wrong java version
https://bugs.launchpad.net/bugs/234690
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs