** Description changed:

  SRU Request for precise
  
  #### SRU Justification ###
  
  [Impact]
  jvisualvm is currently unable to start in Precise.
  
  [Development Fix]
  Fixed in lp:~kroq-gar78/ubuntu/precise/visualvm/fix-start revno 16 
(http://bazaar.launchpad.net/~kroq-gar78/ubuntu/precise/visualvm/fix-start/revision/16)
 along with bug 937710 (they are _very_ similar in nature) by adding `dpkg 
--print-architecture` to the end of the java-6-openjdk path. Because I fixed it 
in conjunction with bug 937710, I also added a 'java-7-openjdk-$ARCH' path.
  
  [Stable Fix]
  To do this after the package has been installed, edit the file 
/usr/bin/jvisualvm and include the same fix, following this diff:
  
  @@ -8,9 +8,10 @@
-  progdir=/usr/bin
-  APPNAME=visualvm
-  BASEDIR=/usr/lib/visualvm
+  progdir=/usr/bin
+  APPNAME=visualvm
+  BASEDIR=/usr/lib/visualvm
  +ARCH=`dpkg --print-architecture`
-  
-  jdkhome=
+ 
+  jdkhome=
  -for j in /usr/lib/jvm/java-6-openjdk /usr/lib/jvm/java-6-sun; do
  +for j in /usr/lib/jvm/java-6-openjdk-$ARCH /usr/lib/jvm/java-6-sun; do
-      if [ -x $j/bin/javac ]; then
-       jdkhome=$j
-       break
+      if [ -x $j/bin/javac ]; then
+   jdkhome=$j
+   break
  
  Since /usr/bin/jvisualvm is the same file as debian/jvisualvm in the
  package source, the file can be edited exactly as it was edited in the
  Bazaar branch above.
  
  [Test Case]
  1) Install the package 'visualvm'
  2) Run 'jvisualvm' from a terminal
  
  With the version in Precise, it will error out with:
  No jdkhome found.
  
  [Regression Potential]
  The potential for regression is extremely low because running the program 
isn't currently possible.
  
  #######
  
  visualvm 1.3.2-0ubuntu2 running on Ubuntu 12.04 LTS.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1004370

Title:
  [SRU] jvisualvm won't launch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/visualvm/+bug/1004370/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to