Results 1 to 4 of 4

Thread: javac compiler package, which one? for open source preferences?

  1. #1
    Join Date
    Sep 2008
    Location
    USA
    Beans
    120
    Distro
    Ubuntu 10.04 Lucid Lynx

    Question javac compiler package, which one? for open source preferences?

    Hello,

    I'm supposed to take some java courses soon, but I want to get a head start so that I'm comfortable w/Java @ the command line [see why below, I did the same thing for my c++ course].

    To give myself this head start I'm reading some basics:
    http://java.sun.com/developer/online...pile.html#comp

    so I ran the following (according to those ^ instructions)
    Code:
    $ javac ./sample.java
    The program 'javac' can be found in the following packages:
     * openjdk-6-jdk <-- would this one be the open source choice?
     * ecj
     * gcj-4.4-jdk
     * gcj-4.3
     * jikes-classpath
     * jikes-kaffe
     * kaffe
     * sun-java6-jdk
    Try: sudo apt-get install <selected package>
    javac: command not found
    
    ?? $ sudo apt-get install openjdk-6-jdk ??
    
    If the above choice is completely preference based, then the only preference I can think of having (and its *just* a preference) is using open sourced stuff.

    Given my "preference",
    • what would everyone suggest I use?
    • what do you use?
    • Any warnings about what I'm about to pick out?
    • maybe someone can just point me to a list summary of how these differ?

    thanks in advance !

    (
    Why I'm not just waiting for class to start:
    I'm trying to make sure I go into this course with a comfortable/familiar work flow for writing,compiling,running at the command line.
    I know the professor will insist that everybody use graphical IDE's for the course. I understand such a demand from the professor, because this makes it easier for him to teach code instead of work-flow. They do the same thing in C++ courses here.
    Lucky for me:
    if I'm comfortable enough that I never have to ask for there help regarding my development work-flow, then the teacher will never complain if he finds me programming - say in vim via ssh on some remote machine - as long as I only ask him questions about the language itself
    )

  2. #2
    Join Date
    Sep 2009
    Beans
    1,293

    Re: javac compiler package, which one? for open source preferences?

    personally i use openjdk, as far as i remember its java6 compliant these days, passing all the relevant tests supplied by sun. of course you can always change it to the sun jdk at any point as well if you decide

  3. #3
    Join Date
    Sep 2008
    Location
    USA
    Beans
    120
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: javac compiler package, which one? for open source preferences?

    Quote Originally Posted by SevenMachines View Post
    personally i use openjdk, as far as i remember its java6 compliant these days, passing all the relevant tests supplied by sun. of course you can always change it to the sun jdk at any point as well if you decide
    hey, thanks for the reply. By chance (just before you replied) I was in a book store and read in an "ubuntu hacks"? book something along the lines of:
    "openjdk is Sun's attempt at an open sourced equivalent to there own sunjdk and most of the code is actually written by Sun."

    - I think its being written by Sun makes me fairly comfortable with it. If anyone else has a suggestion or tip - I'm all ears.

  4. #4
    Join Date
    May 2007
    Beans
    53
    Distro
    Xubuntu 12.10 Quantal Quetzal

    Re: javac compiler package, which one? for open source preferences?

    Hi, I installed openJDK from thew repos (Karmic___ gnome) but I cannot run any programs ( tried to run a Windows program in wine)..... I get "could not start java virtual mchine". What do I do?

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
  •