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

Re: install software foo to "/usr/local/foo" or "/usr/foo"?



On Sun, 2005-04-24 at 04:15 +0200, thufir wrote:
> I'm looking at jcdwriter:
> 
> "Running jCDWriter
> 
>       java -jar jcdwriter.jar
> 
>       If you have your java installed at /usr/local/java/bin/java then you can use full path also:
> /usr/local/java/bin/java -jar jcdwriter.jar"
> 
> <http://jcdwriter.sourceforge.net/#Installation>
> 
> but this raises the question, for me:  what's the difference between installing, for example, java, to "/usr/local/java" versus "/usr/java"?


I'm not familiar with their product, but the example they gave is one
that typically is not in your path (thus java -jar jcdwriter.jar would
not work)

/usr/local/java is a fairly common install path when installing java
from a tarball, and one that often is not in the users path.

My own preference is to use jpackage.org to install java.

[testing fc4t2 ~]$ which java
/usr/bin/java
[testing fc4t2 ~]$ ls -l /usr/bin |grep java
lrwxrwxrwx  1 root root         22 Apr 11 15:14 java
-> /etc/alternatives/java
[testing fc4t2 ~]$ ls -l /etc/alternatives/ |grep java
lrwxrwxrwx  1 root root 35 Apr 16 20:39 java
-> /usr/lib/jvm/jre-1.4.2-gcj/bin/java
[testing fc4t2 ~]$ 

My real java is at /usr/lib/jvm/jre-1.4.2-gcj/bin/java
But it's available via /usr/bin/java


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