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

Thread: Can't get JAVAC! :(

  1. #1
    Join Date
    Oct 2007
    Beans
    6

    Can't get JAVAC! :(

    Hey everyone. All I want to do is get the java compiler (javac) working on my linux (Ubuntu Dapper 6.06)... HOWEVER... everytime I try to sudo apt-get install sun-java5-jdk on the cmd line of the terminal I get the following:

    "Reading package lists... Done"
    "Building dependency tree... Done"
    "E: Couldn't find package sun-java5-jdk"

    And that's it! I can't seem to get javac on my linux for the life of me and I have a project coming up which I would like to be able to program at home on my own computer and not always at the campus labs.

    I hope someone can help, this is really getting annoying!

    Thanks in advance!
    -SP

  2. #2
    Join Date
    Jan 2006
    Location
    Philadelphia
    Beans
    4,076
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Can't get JAVAC! :(

    have you enabled the multiverse repository?

    what version of ubuntu are you running? (sun java wasn't in the repos prior to... feisty, i think)

    also, why get java5 instead of java6?

  3. #3
    Join Date
    Apr 2007
    Beans
    14,781

    Re: Can't get JAVAC! :(

    Look at what available in the GUI Synaptic and Add/Remove Programs
    Last edited by LaRoza; November 2nd, 2007 at 12:56 AM.

  4. #4
    Join Date
    Oct 2007
    Beans
    6

    Re: Can't get JAVAC! :(

    I have tried Synaptic to no avail and I dont even know what the multiverse repository is! I am running Dapper.. and im not sure how to upgrade even really. It doesint matter what version of java I get.. I just want to be able to compile my code!!!!!!!!!

    SOMEONE HELP!!!!!!!

  5. #5
    Join Date
    Apr 2006
    Location
    Sweden
    Beans
    Hidden!

    Re: Can't get JAVAC! :(

    Quote Originally Posted by Prolog View Post
    I have tried Synaptic to no avail and I dont even know what the multiverse repository is! I am running Dapper.. and im not sure how to upgrade even really. It doesint matter what version of java I get.. I just want to be able to compile my code!!!!!!!!!

    SOMEONE HELP!!!!!!!
    https://help.ubuntu.com/community/Repositories/Ubuntu

  6. #6
    Join Date
    Apr 2007
    Beans
    14,781

    Re: Can't get JAVAC! :(


  7. #7
    Join Date
    Oct 2007
    Beans
    6

    Re: Can't get JAVAC! :(

    Quote Originally Posted by Prolog View Post
    I have tried Synaptic to no avail and I dont even know what the multiverse repository is! I am running Dapper.. and im not sure how to upgrade even really. It doesint matter what version of java I get.. I just want to be able to compile my code!!!!!!!!!

    SOMEONE HELP!!!!!!!
    TY! This helped me fix my issue. Thanks so much.

  8. #8
    Join Date
    Apr 2007
    Beans
    14,781

    Re: Can't get JAVAC! :(

    Quote Originally Posted by Prolog View Post
    TY! This helped me fix my issue. Thanks so much.
    Who helped?

    (Mark this as soved, if it is)

  9. #9
    Join Date
    Feb 2008
    Beans
    6

    Re: Can't get JAVAC! :(

    Hi , I have a similar problem. I reinstalled several versions of java form 1.4 tu sun-java6-* but none can supply me with javac. it keeps showing me this:
    The program 'javac' can be found in the following packages:
    * jikes-sun
    * jikes-sablevm
    * kaffe
    * sun-java6-jdk
    * jikes-classpath
    * java-gcj-compat-dev
    * ecj
    * j2sdk1.4
    * jikes-gij
    * jikes-kaffe
    * sun-java5-jdk
    * gcj-4.1
    Try: sudo apt-get install <selected package>
    bash: javac: command not found
    Fine and dandy but i've installed every each of em and stil no javac to use.

  10. #10
    Join Date
    Apr 2007
    Beans
    14,781

    Re: Can't get JAVAC! :(

    Enable all repositories, run:

    Code:
    sudo aptitude install sun-java6-jdk

Page 1 of 2 12 LastLast

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
  •