Real time scenarios on GIT

git clone https://github.com/beingsagir/play-java-spring-data-jpa.git git add -all : add all files new and modified locally git add -A && git commit -m “Comment formatting, 24 hour cache loader, api/contact.” add all files new and modified locally, commit them locally. How to see what has changed before actually doing commit # show differences between index and working…

NoSuchMethodError in javax.persistence.Table.indexes()[Ljavax/persistence/Index

URL url = Thread.currentThread().getContextClassLoader() .getResource(“javax/persistence/Table.class”); System.out.println(url); I’ve ran into the same problem. The question here is that play-java-jpa artifact (javaJpa key in the build.sbt file) depends on a different version of the spec (version 2.0 -> “org.hibernate.javax.persistence” % “hibernate-jpa-2.0-api” % “1.0.1.Final”). When you added hibernate-entitymanager 4.3 this brought the newer spec (2.1) and a different…

Ubuntu not showing eclipse menu

Open your eclipse.desktop file: sudo -H gedit /usr/share/applications/eclipse.desktop (If you can’t find it in this path, try in ~/.local/share/applications/eclipse.desktop. Otherwise, you could have to find yours using locate command). Replace the Exec= line with this: Exec=env UBUNTU_MENUPROXY= eclipse Where “eclipse” is the path to your eclipse executable. In this case it’s just “eclipse” since there’s…

Setting up Play Development Environment on Ubuntu

# Configure apt for java # http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html apt-get update apt-get install -y python-software-properties add-apt-repository -y ppa:webupd8team/java echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections # Update apt sources apt-get update apt-get install -y unzip wget git vim oracle-java8-installer oracle-java8-set-default # Install scala cd /opt wget http://www.scala-lang.org/files/archive/scala-2.12.0.tgz tar -zxvf scala-2.12.0.tgz # end scala #Installing playframework on ubuntu…

How to Install MySQL – Ubuntu

  apt-get install –print-uris mysql-server > desktop http://in.archive.ubuntu.com/ubuntu/pool/main/libe/libevent/libevent-core-2.0-5_2.0.21-stable-2_amd64.debhttp://in.archive.ubuntu.com/ubuntu/pool/main/m/mysql-5.7/mysql-common_5.7.16-0ubuntu0.16.04.1_all.debhttp://in.archive.ubuntu.com/ubuntu/pool/main/liba/libaio/libaio1_0.3.110-2_amd64.debhttp://in.archive.ubuntu.com/ubuntu/pool/main/m/mysql-5.7/mysql-client-core-5.7_5.7.16-0ubuntu0.16.04.1_amd64.debhttp://in.archive.ubuntu.com/ubuntu/pool/main/m/mysql-5.7/mysql-client-5.7_5.7.16-0ubuntu0.16.04.1_amd64.debhttp://in.archive.ubuntu.com/ubuntu/pool/main/m/mysql-5.7/mysql-server-core-5.7_5.7.16-0ubuntu0.16.04.1_amd64.debhttp://in.archive.ubuntu.com/ubuntu/pool/main/m/mysql-5.7/mysql-server-5.7_5.7.16-0ubuntu0.16.04.1_amd64.debhttp://in.archive.ubuntu.com/ubuntu/pool/main/libh/libhtml-template-perl/libhtml-template-perl_2.95-2_all.debhttp://in.archive.ubuntu.com/ubuntu/pool/main/m/mysql-5.7/mysql-server_5.7.16-0ubuntu0.16.04.1_all.deb This will print out a bunch of URLs. You can download these from another computer, and transfer them to your Ubuntu machine, putting the .deb files into /var/cache/apt/archives. sudo apt-get install mysql-server And apt will find the package files you’ve downloaded, and install mysql.