Saturday 26 October 2019

How to Install Eclipse IDE on Ubuntu 19.10

Harry
    Eclipse is a well known Integrated Development Environment. It is used by developers all around the world to code their application, it is primarily developed in Java, but programmers can use it to code their applications in various languages like C/C++, COBOL, Fortran, Perl, PHP, Python, Ruby on Rails etc. It is a cross platform application and runs fine on Microsoft Windows, Linux, Solaris and Mac OS.



Installation instructions:

    Installing Eclipse on ubuntu is not very complex process, first of all make sure to install Java on your Linux system, Eclipse needs java as pre-requisite , run following command to install java on your ubuntu 19.10 system.

 for Java 7


sudo apt-get install openjdk-7-jdk

or for Install Java 8  Click links
or for Install Java 9  Click links
or for Install Java 11  Click links
or for Install Java 13  Click links 
 
  It might take some moments to download and install java, once the installation is complete, download Eclipse according to your operating system architecture.

    run below commands one by one:


$ cd Downloads

$ tar –xvf lipse-jee-2019-09-R-linux-gtk-x86_64.tar.gz

$ sudo mv eclipse /opt

sudo gedit /usr/share/applications/eclipse.desktop

It will launch an empty file, copy and paste the followings into this empty file, as shown in following.

[Desktop Entry]

Name=Eclipse

Type=Application

Exec=/opt/eclipse/eclipse

Terminal=false

Icon=/opt/eclipse/icon.xpm

Comment=Integrated Development Environment

NoDisplay=false

Categories=Development;IDE;

Name[en]=eclipse.desktop

Save the file, and now run following command on terminal to automatically install this desktop file on your ubuntu system.

$ sudo desktop-file-install /usr/share/applications/eclipse.desktop

As last step of the install, go to /usr/local/bin and create eclipse symlink, following two commands should take care of this:

$ cd /usr/local/bin

$ sudo ln -s /opt/eclipse/eclipse

Eclipse has been installed successfully, launch it from Applications menu.

It will ask you to specify workspace when loaded, once done, main page will be loaded.








How to install Oracle Java 13 on Ubuntu 18.04, 16.04, 19.04, 19.10

Harry
Oracle will provide Java 13 as the Oracle OpenJDK release using the open source GNU General Public License v2, with the Classpath Exception (GPLv2+CPE), and also under a commercial license for those using the Oracle JDK release as part of an Oracle product or service, or who do not wish to use open source software.





Java 13 Changelog

Five enhancements are delivered with Java 13, inclusive of two preview features:

JEP 350 – Dynamic CDS Archives: Extends application class-data sharing to allow the dynamic archiving of classes at the end of Java application execution. The archived classes will include all loaded application classes and library classes that are not present in the default, base-layer CDS archive.

JEP 351 – ZGC: Uncommit Unused Memory: Enhances the z garbage collector to return unused heap memory to the operating system.

JEP 353 – Reimplement the Legacy Socket API:  Replaces the underlying implementation used by the java.net.Socket and java.net.ServerSocket APIs with a simpler and more modern implementation that is easy to maintain and debug. The new implementation will be easy to adapt to work with user-mode threads, a.k.a. fibers, currently being explored in Project Loom.

JEP 354 – Switch Expressions (Preview): Extends switch so it can be used as either a statement or an expression, which will simplify everyday coding, and prepare the way for the use of pattern matching (JEP 305) in switch.

JEP 355 – Text Blocks (Preview): Adds text blocks to the Java language, which will simplify the task of writing Java programs by making it easy to express strings that span several lines of source code, while avoiding escape sequences in common cases; enhance the readability of strings in Java programs that denote code written in non-Java languages; as well as support migration from string literals by stipulating that any new construct can express the same set of strings as a string literal, and interpret the same escape sequences, and be manipulated like a string literal.

Java continues to be the #1 programming language of choice by software programmers.  And as the on-time delivery of improvements with Java 13 demonstrates, through continued thoughtful planning and ecosystem involvement, the Java platform is well-positioned for modern development and growth in the cloud.

 See announcement for full details


Installation instructions:

Open terminal from Unity Dash, App Launcher, or via Ctrl+Alt+T keys. When it opens, run below commands one by one:

$ sudo add-apt-repository ppa:linuxuprising/java

$ sudo apt-get update

$ sudo apt-get install oracle-java13-installer

To set Oracle Java 13 by default, do:

$ sudo apt-get install oracle-java13-set-default
 
Check Installed Version
  
java --version




  Option, remove Java 13:

$ sudo apt-get remove oracle-java13-installer