PDA

View Full Version : The alternatives --config command



tech291083
31st May 2007, 09:12 AM
Hi,

I just did the following and up came two alternative, telling me that there are two programs that provide java. But my question is what this command alternatives --config java actually does? Can I use it to see how many programs provide PHP, Perl, Python, Ruby etc.




[root@localhost ~]# alternatives --config java

There are 2 programs which provide 'java'.

Selection Command
-----------------------------------------------
*+ 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
2 /pathto/sunjava/java

Enter to keep the current selection[+], or type selection number:

Thanks..

clearer
31st May 2007, 09:20 AM
it allows you to pick witch java machine to use when you write java <some class name>.
Generally I would only use SUNs java when requried (not that there's anything bad about it, I'm just a libre software fanboy).

tech291083
10th June 2007, 10:46 AM
it allows you to pick witch java machine to use when you write java <some class name>.
Generally I would only use SUNs java when requried (not that there's anything bad about it, I'm just a libre software fanboy).


Thanks a lot