Wednesday, 13 September 2017

Install Jar Files in Ubuntu

How to Install Jar Files in Ubuntu


To install a jar file in ubuntu and its flavored OS: 

Steps :

  1. Open Terminal (Ctrl+Alt+T)
  2. Syntax: java -jar <path to jar>/filename.jar
    Eg: java -jar /home/gulshan/OpenJump.jar
  3. That's it. Follow the instructions and you are ready to go.
  4. If possible, check the following command: java -version in terminal.

Case Study:

I have downloaded openjump from here : http://openjump.org/ which contains a jar file.
Then I installed with the above steps.

Friday, 8 September 2017

Install Go Lang in Ubuntu(That worked for me!)

To install and run GO Programming Language :

INSTALLATION PROCEDURE:
  1. Open Terminal (Ctrl+Alt+T)
  2. Check for updates
    $ sudo apt-get update
  3. Add the following line (to install ver 1.8)
    $ sudo apt-get install golang-1.8-go
  4. Check if its installed properly or not
    $ go version
    This lets you know the current version of go you are running.
  5. You have successfully installed the GO lang in your system.
TO RUN SAMPLE GO CODE:
There are three ways to run GO Code.
  1. Using a Terminal
          i) Create a file with .go extension.
                  1. Open terminal and type 
                             $ notepadqq hello.go
                  2. Try the following code

             package main
             import "fmt"
             func main() {
             fmt.Println("HELLO WORLD")
             }



          ii) Build and Run the file with the following commands.
                  3. go run hello.go
                       This displays the following output.
                         "HELLO WORLD"
   
      2. Using Online Editor
           Visit the official link : https://play.golang.org/
          
      2. Using IDE
          Download and install LITEIDE.(https://sourceforge.net/projects/liteide/)
          Copy the hello.go code 
          Run using CTRL + R. You will see the output.

          

          

Install Jar Files in Ubuntu

How to Install Jar Files in Ubuntu To install a jar file in ubuntu and its flavored OS:  Steps : Open Terminal (Ctrl+Alt+T) Sy...