Step-1: Install Hibernate support pluginStep-2: Create maven project of archetype-webappCreate a new project from New -> Project -> Maven -> archetype -> webappStep-3: Hibernate configCreate the below config and save it as hibernate-cfg.xml<?xml version="1.0" … [Read more...] about reverse engineer hibernate pojos in intelliJ
remove-openjdk-and-install-oracle-jdk on ubuntu
In this blog post, I will show you how to remove openjdk and install oracle jdk on ubuntu.Step-1: Download oracle JDKDownload from hereStep-2: Remove existing openjdksudo apt-get purge openjdk-\*Step-3: Create directory for java installationsudo mkdir -p … [Read more...] about remove-openjdk-and-install-oracle-jdk on ubuntu
How to install JMonkey
What is JMonkey?As per the Official documentation, It’s a free, open source game engine, made especially for Java game developers who want to create 3D games using modern technology. The software is programmed entirely in Java, intended for wide accessibility and quick deployment.In this … [Read more...] about How to install JMonkey
How to call main method from another main method in Java
In this blog post, I will show you how to call a main from inside a main method in java using reflectionLet's start from creating a simple class Hello.java as shown below,public class Hello { public static void main(String[]args){ System.out.println("Hello"); } }Now, … [Read more...] about How to call main method from another main method in Java
Installing Karel the Robot
Karel is a simulation tool used for learning java, developed at Stanford university. It is available as plugin for eclipse we can install it directly using the link below,https://web.stanford.edu/dept/cs_edu/eclipse/pluginFrom the eclipse, first navigate to help -> install new … [Read more...] about Installing Karel the Robot
How to create an executable Jar file using maven
In this blog post, we will learn how to create a simple quick start project which can be build into a jar file, upon it's' execution will call a java class with main method.Create maven quick start projectmvn archetype:generate -DgroupId=com.test -DartifactId=test … [Read more...] about How to create an executable Jar file using maven
Installing JDK on linux
Introduction This is a blog post series on Java Programming. In this blog post, I will cover introduction & installation part. In the next blog posts I will cover the core concepts of Java. About Java Java is a general-purpose computer-programming language that … [Read more...] about Installing JDK on linux
How to downgrade java on ubuntu/kali linux
In this blog post I am going to show you how to downgrade java and javac on ubuntu/kali linux. Some applications will require older version of java; For instance, I had to downgrade from openjdk 10 to openjdk 8 because Jenkins doesn't support openjdk 10.The availability of java versions … [Read more...] about How to downgrade java on ubuntu/kali linux