Results 1 to 2 of 2

Thread: Specifying JRE with java command in ubuntu

  1. #1
    Join Date
    Nov 2009
    Beans
    34

    Specifying JRE with java command in ubuntu

    So this ones pretty straightforward.

    I have both open jre and sun jre on this machine.

    When im calling a java command from the terminal, how do i specify which one to use?

    eg java -jar executablejar.jar would run the jar file with open JDK.

  2. #2
    Join Date
    Jun 2007
    Beans
    26
    Distro
    Lubuntu

    Re: Specifying JRE with java command in ubuntu

    Try:

    Code:
    sudo update-alternatives --config java
    Here is a very good reference:

    http://ubuntuforums.org/showthread.php?t=1517979

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •