JVisualvm broken on 12.10

Bug #1070778 reported by Infthi
This bug report is a duplicate of:  Bug #1070444: VisualVM not execute. Edit Remove
40
This bug affects 8 people
Affects Status Importance Assigned to Milestone
visualvm (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

visualvm has /usr/bin/jvisualvm file

it's last three lines are

nbexec=`echo "$BASEDIR"/platform*/lib/nbexec`
nbexec=/usr/share/netbeans/platform12/lib/nbexec

eval exec /bin/bash '"$nbexec"' [blah-blah-blah]

it lloks like line with hardcoded "platform12" is useless and was used for debug. But in 12.10 there is no libnb-platform12-java package, there is libnb-platform13-java (and it's a dependency for visualvm). So this hardcoded nbexec file is missing, and visualvm fails to start:

$ jvisualvm
/bin/bash: /usr/share/netbeans/platform12/lib/nbexec: No such file or directory

looks like that line must be removed from script in package

Tags: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in visualvm (Ubuntu):
status: New → Confirmed
Revision history for this message
Igor Morgado (morgado-igor) wrote :

This patch fixes this errors. Apply with

sudo patch -p0 < visualvm.diff

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "patches startup code and conf" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Hugo van der Wijst (hugwijst) wrote :

I can confirm that the attached patch allows the program to start. The changes to the configuration file do not apply on a 64-bit machine and are not necessary to allow the program to work.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package visualvm - 1.3.3-2ubuntu1

---------------
visualvm (1.3.3-2ubuntu1) raring; urgency=low

  * Merge with Debian; remaining changes:
    - Prefer OpenJDK 7 over OpenJDK 6.

visualvm (1.3.3-2) unstable; urgency=low

  * Fix path to the nbexec binary. LP: #1070444, LP: #1070778.

visualvm (1.3.3-1) unstable; urgency=low

  * Upload to unstable.
  * Set maintainer to Debian Java Maintainers.
 -- Matthias Klose <email address hidden> Fri, 16 Nov 2012 17:02:16 +0100

Changed in visualvm (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Colin Watson (cjwatson) wrote :

Also fixed in quantal-updates now:

visualvm (1.3.3-0ubuntu2) quantal-proposed; urgency=low

  * Fix path to the nbexec binary. LP: #1070444, LP: #1070778.

 -- Matthias Klose <email address hidden> Fri, 16 Nov 2012 17:08:08 +0100

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.