Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Compiling and Running Java Programs in Terminal

  1. #11
    Join Date
    May 2007
    Location
    Leeds, UK
    Beans
    1,664
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Compiling and Running Java Programs in Terminal

    This is the danger of old threads. Oracle JDK 1.6 will cease to get security updates from February 2013 and OpenJDK 6 will most likely follow soon after.

    Unless you have a compelling need to support a legacy system, install and use OpenJDK 7.

    Code:
    sudo apt-get install openjdk-7-jdk
    Also watch out for the release of Java 1.8 due later this year.

  2. #12
    Join Date
    Nov 2012
    Location
    Halloween Town
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Compiling and Running Java Programs in Terminal

    Quote Originally Posted by r-senior View Post
    This is the danger of old threads. Oracle JDK 1.6 will cease to get security updates from February 2013 and OpenJDK 6 will most likely follow soon after.

    Unless you have a compelling need to support a legacy system, install and use OpenJDK 7.

    Code:
    sudo apt-get install openjdk-7-jdk
    Also watch out for the release of Java 1.8 due later this year.
    Absolutely right. Oracle Java SE Support Roadmap indicates that after February 2013, Oracle will no longer post updates of Java SE 6 to its public download sites. Existing Java SE 6 downloads already posted as of February 2013 will remain accessible in the Java Archive on Oracle Technology Network. Developers and end-users are encouraged to update to more recent Java SE versions that remain available for public download.

  3. #13
    Join Date
    Mar 2010
    Location
    London
    Beans
    924

    Re: Compiling and Running Java Programs in Terminal

    While this is true, it all depends on what you're doing. Many companies will stay on Java 6 for a long time. If you start writing code for Java 7, some of it will not compile on Java 6 due to new language features.
    - "Make me a coffee..."
    - "No"
    - "sudo make me a coffee"
    - "OK"

  4. #14
    Join Date
    May 2007
    Location
    Leeds, UK
    Beans
    1,664
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Compiling and Running Java Programs in Terminal

    That's true, and some places are even further behind. There is the -source option on javac though and the Maven compiler plugin accepts a similar parameter.

    Code:
    javac -source 1.6 MyOldClass.java

  5. #15
    Join Date
    Mar 2010
    Location
    London
    Beans
    924

    Re: Compiling and Running Java Programs in Terminal

    Good old maven lol. Its just like the python 2.x vs 3 problem... but people will eventually catch up.
    - "Make me a coffee..."
    - "No"
    - "sudo make me a coffee"
    - "OK"

Page 2 of 2 FirstFirst 12

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
  •