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

How to use update-alternatives --install ...?



I have kaffe installed and "update-alternatives --display java" says:

java - status is auto.
 link currently points to /usr/lib/kaffe/bin/java
/usr/lib/kaffe/bin/java - priority 300
 slave java.1.gz: /usr/share/man/man1/kaffe.1.gz
Current `best' version is /usr/lib/kaffe/bin/java.

I have installed the JDK in /usr/local/j2sdk1.3.1 and want to add the
corresponding alternative. I've tried:

  update-alternatives --install java /usr/bin/java \
    /usr/local/j2sdk1.3.1/bin/java 20 --slave java.1.gz \
    /usr/share/man/man1/java.1.gz /usr/local/j2sdk1.3.1/man/man1/java.1.gz

but I get the following error:

update-alternatives: unable to open /var/lib/dpkg/alternatives//usr/bin/java.dpkg-new for write: No such file or directory

Then, how can I change the alternative?

The man page isn't very clear...

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



Reply to: