Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Installing Dr. Java

  1. #1
    Join Date
    Oct 2008
    Beans
    34

    Installing Dr. Java

    Hi!

    I'm taking a computer science class and we're using Dr. Java in it. The professor said that it worked with Linux but I can figure out how to install it. I downloaded the JDK first and then Dr. Java, but Dr. Java won't load. I put

    Code:
     java -jar drjava-stable-20040326.jar
    based on a website I found, and I checked that it was the number, but it didn't work.

    Thanks!

  2. #2
    Join Date
    May 2006
    Location
    Switzerland
    Beans
    2,541
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Installing Dr. Java

    Quote Originally Posted by WriteGirl View Post
    but it didn't work.
    "Didn't work" is not informative enough.

    Please give us the exact error message.

  3. #3
    Join Date
    Jun 2009
    Location
    0000:0400
    Beans
    Hidden!

    Re: Installing Dr. Java

    Did you download the same version as the file you read on the website? If you're trying to run it from the command line, tab completion is your friend. In other words
    Code:
    java -jar drjava<tab>
    And the rest will be filled in for you. There's no installation -- it runs on its own.

  4. #4
    Join Date
    Oct 2008
    Beans
    34

    Re: Installing Dr. Java

    When I put in
    Code:
    java -jar drjava<tab>
    , I got
    Code:
    bash: syntax error near unexpected token `newline'
    When I put in
    Code:
    java -jar drjava-stable-20040326.jar
    , I got
    Code:
    The program 'java' can be found in the following packages:
     * gij-4.3
     * java-gcj-compat-headless
     * openjdk-6-jre-headless
     * cacao
     * gij-4.2
     * jamvm
     * kaffe
    Try: sudo apt-get install <selected package>
    bash: java: command not found

  5. #5
    Join Date
    Jun 2009
    Location
    0000:0400
    Beans
    Hidden!

    Re: Installing Dr. Java

    So you don't have a JRE installed.
    Code:
    sudo apt-get install sun-java6-jre

  6. #6
    Join Date
    May 2006
    Location
    Switzerland
    Beans
    2,541
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Installing Dr. Java

    Quote Originally Posted by WriteGirl View Post
    When I put in
    Code:
    java -jar drjava-stable-20040326.jar
    , I got
    Code:
    The program 'java' can be found in the following packages:
     * gij-4.3
     * java-gcj-compat-headless
     * openjdk-6-jre-headless
     * cacao
     * gij-4.2
     * jamvm
     * kaffe
    Try: sudo apt-get install <selected package>
    bash: java: command not found
    You don't have Java installed.

    Go into ...
    System > Administration > Software Sources

    You will be asked for your password. Once this new program window is open, go to the tab that says "Ubuntu Software" (it should be the first tab anyway). Please activate these options:

    • Canonical supported Open Source software (main)
    • Community maintained Open Source software (universe)
    • Proprietary drivers (restricted)
    • Software restricted by copyright (multiverse)
    • Source code


    Hit the "Close" button. When the program complains that the package list is out-of-date, let it refresh itself.

    Now, go back to the terminal and type this code:

    Code:
    sudo apt-get install sun-java6-bin sun-java6-fonts sun-java6-jre sun-java6-plugin
    You will probably asked again for your password. The password is _NOT_ echoed back when you type it, there won't be stars, dots, or anything. Just type it in blindly and hit enter.

    The command I gave you above should then proceed to download Sun's Java runtime environment for you. After that you will have Java installed and Java programs should be able to run.

  7. #7
    Join Date
    Oct 2008
    Beans
    34

    Re: Installing Dr. Java

    falconindy - I'm installing the JRE now. Once that's installed, will the code you gave me before work?

  8. #8
    Join Date
    May 2006
    Location
    Switzerland
    Beans
    2,541
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Installing Dr. Java

    Quote Originally Posted by WriteGirl View Post
    falconindy - I'm installing the JRE now. Once that's installed, will the code you gave me before work?
    The code you've used before should work

  9. #9
    Join Date
    May 2006
    Location
    Switzerland
    Beans
    2,541
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Installing Dr. Java

    Quote Originally Posted by WriteGirl View Post
    When I put in
    Code:
    java -jar drjava<tab>
    You're not supposed to type "<tab>" into the command

    You're supposed to hit the TAB key. So you type:
    Code:
    java -jar drjava<press the TAB key>
    The command line shell should auto-fillout the rest (that's what the TAB key is for).

  10. #10
    Join Date
    Oct 2008
    Beans
    34

    Re: Installing Dr. Java

    I believe I installed Java, but I still haven't figured out how to open the Dr. Java program. When I put
    Code:
    java -jar drjava-stable-20040326.jar
    in, I only got
    Code:
    Unable to access jarfile drjava-stable-20040326.jar
    I downloaded to Dr. Java to the Desktop, could that be the problem?

    Thanks!

    Never mind, I figured it out. Thanks!
    Last edited by WriteGirl; September 4th, 2009 at 03:46 AM.

Page 1 of 2 12 LastLast

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
  •