** Summary changed:

- VisualVM does not start with openjdk 7
+ [SRU] VisualVM does not start with openjdk 7

** Description changed:

- Same problem as this bug but with openjdk 7:
- https://bugs.launchpad.net/ubuntu/+source/visualvm/+bug/657048
+ SRU Request for precise
  
- Passing the path to the openjdk to the program does work as a
- workaround.
+ #### SRU Justification ###
  
- 1. Ubuntu 12.04
- 2. 
-  apt-cache policy visualvm
- visualvm:
-   Installiert: 1.3.2-0ubuntu1
-   Kandidat:    1.3.2-0ubuntu1
-   Versionstabelle:
-  *** 1.3.2-0ubuntu1 0
-         500 http://archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
-         100 /var/lib/dpkg/status
+ [Impact]
+ jvisualvm is currently unable to start in Precise when using OpenJDK 7.
  
- 3. VisualVM should start
- 4. VisualVM did not start
+ [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.
  
- ProblemType: Bug
- DistroRelease: Ubuntu 12.04
- Package: visualvm 1.3.2-0ubuntu1
- ProcVersionSignature: Ubuntu 3.2.0-17.26-generic 3.2.6
- Uname: Linux 3.2.0-17-generic x86_64
- NonfreeKernelModules: nvidia
- ApportVersion: 1.92-0ubuntu1
- Architecture: amd64
- Date: Tue Feb 21 12:21:05 2012
- InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
- SourcePackage: visualvm
- UpgradeStatus: Upgraded to precise on 2012-02-16 (4 days ago)
+ [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
+ +ARCH=`dpkg --print-architecture`
+ 
+  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
+ 
+ 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
+ 
+ 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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to