Announcement

Collapse
No announcement yet.

Associating command line commands with programs

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Associating command line commands with programs

    I recently switched to Linux (I now use Kubuntu Edgy Eft) and I must say I very pleased. I even start getting the hang of the command line tools.

    I installed multiple Java Runtime Environments (using Adept), like Blackdown JRE and later the official JDK 1.5 from Sun. The problem now is that het commands "java" and "javac" are associated with the Blackdown compiler, not with Sun's. So I have to type in the full path to the compiler each time:

    /usr/lib/jvm/java-1.5.0-sun-1.5.0.08/bin/javac and /usr/lib/jvm/java-1.5.0-sun-1.5.0.08/bin/java

    How can I register Sun's JDK so that I only have to type "java" (or "javac") to use it?

    #2
    Re: Associating command line commands with programs

    Try:
    Code:
    sudo update-alternatives --config java
    and select sun's java from the list

    Comment


      #3
      Re: Associating command line commands with programs

      Thx

      Comment

      Working...
      X