You are not logged in.

#1 2008-07-10 20:33:03

kjozsa
Member
Registered: 2008-06-05
Posts: 82

VisualVM package - Java VM inspection tool

Hi,

as a Java EE architect, longtime linux user (since '97 and still counting) and recent happy Arch convert, I love to see that the most important Java tools are packaged (and are done correctly!) in Arch (jdk, ant, maven, etc). Do you think it'd worth to keep VisualVM packaged as well? (https://visualvm.dev.java.net/, general JVM inspection monitoring tool). If anyone's interested, but noone would volunteer packaging it, I'll consider trying to do it myself (never did any Arch package though).

cheers,
Kristof

Offline

#2 2008-07-10 21:16:36

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 955

Re: VisualVM package - Java VM inspection tool

Give it a try! Its not too difficult, and knowledge about java is much more important than knowledge of packaging. Feel free to post your efforts her, or ask questions.

Welcome to arch!

Offline

#3 2009-03-26 22:39:23

kjozsa
Member
Registered: 2008-06-05
Posts: 82

Re: VisualVM package - Java VM inspection tool

http://aur.archlinux.org/packages.php?ID=24991

the actual packaging time was about 10 mins.. sorry it took a bit long smile

Offline

#4 2010-08-16 08:01:31

made_in_nz
Member
From: Wellington, New Zealand
Registered: 2010-01-04
Posts: 44

Re: VisualVM package - Java VM inspection tool

Hi kjozsa, version 1.3 is out.
I used this updated PKGBUILD to package it:

pkgname=visualvm
pkgver=1.3
pkgrel=1
pkgdesc="A Java VM monitoring and troubleshooting tool"
arch=('i686' 'x86_64')
url="https://visualvm.dev.java.net/"
license=('GPL2')
depends=('j2sdk')
source=(https://visualvm.dev.java.net/files/documents/7163/151728/visualvm_13.zip  \
    visualvm)
md5sums=('1e44fa233b8f4fdfec47d6bbefe8e5f7' 'c5b2fa607ff10eab8ef2c0e6b84cb8eb')

build() {
  cd $startdir/src
  mkdir $startdir/pkg/opt
  mv visualvm_13 $startdir/pkg/opt/visualvm_13

  rm $startdir/pkg/opt/visualvm_13/*.txt
  rm $startdir/pkg/opt/visualvm_13/bin/*.exe
  rm $startdir/pkg/opt/visualvm_13/platform/lib/nbexec.{dll,exe}
  rm -rf $startdir/pkg/opt/visualvm_13/profiler/lib/deployed/jdk1{5,6}/{hpux*,mac,solaris*,windows*}

  mkdir -p $startdir/pkg/usr/bin/
  install -m 755 $startdir/visualvm $startdir/pkg/usr/bin/
}

Offline

#5 2010-08-16 08:31:25

kjozsa
Member
Registered: 2008-06-05
Posts: 82

Re: VisualVM package - Java VM inspection tool

made_in_nz, you'd better strip version numbers on directories. I updated the package in AUR (and also signed you as a contributor), thanks wink

Offline

#6 2010-08-16 08:46:35

dcc24
Member
Registered: 2009-10-31
Posts: 722

Re: VisualVM package - Java VM inspection tool

Just a quick suggestion, why don't you use a symlink that maps "/opt/visualvm/bin/visualvm" to "/usr/bin/visualvm"? That way you won't need that additional visualvm script.


It is better to keep your mouth shut and be thought a fool than to open it and remove all doubt. (Mark Twain)

My AUR packages

Offline

#7 2010-08-16 08:50:28

kjozsa
Member
Registered: 2008-06-05
Posts: 82

Re: VisualVM package - Java VM inspection tool

afairc the bin/visualvm script (provided by sun/oracle) used relative paths for starting the application..

Offline

Board footer

Powered by FluxBB