Step-by-step – Glassfish Eclipse Ubuntu 18.04 Installation Guide

May 11, 2020 | By the+gnu+linux+evangelist | Filed in: Tutorial.

Installing

  1. 2. Downloading Glassfish 5.1

    Download Eclipse Glassfish 5.1 App Server for Linux

    Get Glassfish 5.1 Zip

    Use the Web Profile for Servlet, JSF and JSB Apps.

    If you are using Firefox then on Prompt Choose “Open with Archive Manager”:

     - Firefox Prompt

    Or After try to Select the Package by the Downloads Button on Top Panel:

     - Downloaded Packages

    Instead, on Google-Chrome simply try to Choose the Package on the Bottom Panel:

     - Chrome Bottom Panel Downloads

    How to Install Chrome Browser on Ubuntu.

  2. 3. Extracting Glassfish 5.1

    Then Extract Glassfish 5
    First Check if Unzip is there:

    which unzip

    If Not then to Install the Unzip Tool:

    sudo apt install unzip

    Authenticate with the User Admin Pass.
    If Got “User is Not in Sudoers file” then see: How to Enable sudo
    Then Double-Click on Archive and Decompress it into /tmp:

     - Extract

    Or from Command Line:

    unzip -d /tmp/ $HOME/Downloads/glassfish*.zip

    (But if downloaded with Firefox it may be instead into /tmp/mozilla*)
    Finally, if yuo are in Trouble to Find it out on Terminal See: How to Access Downloads Folder from Browser.

  3. 4. Installing Oracle JDK

    How to Install Required Oracle Java JDK 8+ on Ubuntu Linux

    Install Oracle JDK for Ubuntu
  4. 5. Installing Glassfish 5.1

    Finally, to Install Eclipse Glassfish 5.1 in Ubuntu
    (Here we describe a System-Wide Setup, for a Local one Just Run from inside Home)
    Set the SuperUser as Owner:

    sudo chown -R root:root /tmp/glassfish5

    Again, give Execution Permissions with:

    sudo chown -R +x /tmp/glassfish5

    And then Switch contents:

    sudo mv /tmp/glassfish5 /opt/

    Furthermore, Append Glassfish into User’s Path:

    echo "export PATH=$PATH:/opt/glassfish5/bin" >> ~/.bashrc

    To Reload Path simply:

    bash

    Finally, to Test Glassfish 5.1 Installation:

    which asadmin

Contents


Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

QuickChic Theme • Powered by WordPress