[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: install jdk-1_5_0_04-linux-i586.bin fails with "too many arguments"

On Sun, Jul 03, 2005 at 06:42:02PM -0700, Randall J. Parr wrote:
> I am trying to install the Sun JDK 1.5.0_04 on sarge (moving on to testing) and 
> it fails as below.
> # sh jdk-1_5_0_04-linux-i586.bin .......
> .......
> Creating jdk1.5.0_04/jre/lib/javaws.jar
> Creating jdk1.5.0_04/jre/lib/deploy.jar
> dirname: too many arguments
> Try `dirname --help' for more information.
> dirname: too few arguments
> Try `dirname --help' for more information.
> Anyone have a fix for this?  I'd really rather avoid having to tear into thier 
> install script if its already known how to fix it.

Yes.  Don't install directly.  First, install the java-package package
(and fakeroot if you don't already have it).  Then run this:

$ fakeroot make-jpkg jdk-1_5_0_04-linux-i586.bin
$ dpkg -i <name_of_resulting>.deb

Then, future upgrades will include all the Debian goodness of updating
the relevant symlinks.  This also allows you to have simultaneously
installed jdk1.5, jdk1.4 and so on, and then manage which one you
actually use with update-alternatives or a suitable GUI over it.


Roberto C. Sanchez

Attachment: pgpOxmdsXxQCk.pgp
Description: PGP signature

Reply to: