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.

          

          

Thursday, 31 August 2017

Android Studio Package Renaming Error and App Launch Problem

The Problem:
If you rename a package name in Android Studio and run the application, you won't be able to launch the app from Android studio and you need to manually click on app on your device to open
The error you come across is as follows:
Error type 3:
Error: Activity class {com.mycompany.myapplication/com.mycompany.testapp.MainActivity} does not exist.

To overcome this problem, follow the solutiion below:

The Solution:
If you are using Android Studio in Linux OS (Ubuntu, etc.,) , you can safely
  1.  Remove the directory .gradle/caches (use Ctrl+H to show hidden files and folders).
  2.  Click on "Sync Project with Gradle Files" icon on the toolbar of the Android Studio
  3.  Then Build -> Rebuild Project in Android Studio.
That's it. Now the app will be rebuild and you can easily launch your app from Android Studio without any errors and stuff.

Note: If you still got issues, comment below.

Saturday, 26 August 2017

Wanna Prepare For GATE ?


A USEFUL GATE PREP Guide.

Information Link
A Complete guide http://www.geeksforgeeks.org/gate-cs-notes-gq/
Last Minute Notes http://www.geeksforgeeks.org/lmns-gq/

Lovely and useful information .. Thank you for the effort geeks ;)

 Hoping to start soon 😎

HELLO WORLD !!!

OK.. Let's start with basics. BLOGGING since 2007 but lost all my blogs in a timeline. FEELING Motivated enough to start again .. Let's ROCK THE WORLD from the scratch.

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...