** Description changed:

  SRU Request for precise
  
  #### SRU Justification ###
  
  [Impact]
  jvisualvm is currently unable to start in Precise when using OpenJDK 7.
  
  [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 1004370 (they are _very_ similar in nature) by adding a 
'java-7-openjdk-$ARCH' path, where $ARCH=`dpkg --print-architecture`. Because I 
fixed it in conjunction with bug 1004370, I also added "-$ARCH" to the end of 
the 'java-6-openjdk' 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 /usr/lib/jvm/java-6-sun 
/usr/lib/jvm/java-7-openjdk-$ARCH; 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) Make sure openjdk-6-jre nor openjdk-6-jdk are installed
- 2) Run 'jvisualvm' from a terminal
+ 3) 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 with OpenJDK 7.
  
  #######
  
  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/937710

Title:
  [SRU] VisualVM does not start with openjdk 7

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

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

Reply via email to