Results 1 to 3 of 3

Thread: java compiler for Ubuntu 12.02?

  1. #1
    Join Date
    Jun 2013
    Beans
    3

    java compiler for Ubuntu 12.02?

    I am looking for a java compiler and didn't seem to be able to find one at the archive with apt-get install. I tried all the names I know about java, jdk, openjdk.

    I looked in the forum and found only posts from 2008, and a lot of time has gone by, so I thought I should ask again.

  2. #2
    Join Date
    Oct 2006
    Location
    California
    Beans
    Hidden!

    Re: java compiler for Ubuntu 12.02?

    Do you mean 12.04? If that's the case, either of these should work.

    For openjdk6:
    Code:
    sudo apt-get update
    sudo apt-get install default-jdk
    For openjdk7:
    Code:
    sudo apt-get update
    sudo apt-get install openjdk-7-jdk

  3. #3
    Join Date
    Jan 2009
    Location
    Santander, Spain
    Beans
    1,981
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: java compiler for Ubuntu 12.02?

    As it is forementioned, you need to have openjdk-7-jdk software package installed in ubuntu in order to compile .java files.

    Then you do compilation through command:

    javac name_of_file.java

    Please, see link: http://askubuntu.com/questions/14574...le-a-java-file

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
  •