In the blog post, I will be delivering my day to day experience regarding technical stuff. In my previous post, I have discussed about Rocket Chat which got implemented today.
Here are few screenshots, I would like to share.
Besides this, I will annotate about the errors I encountered while attempting this task.
My system’s dpkg was interupted, so I have to run:
sudo dpkg --configure -a
But, I was facing another problem:
dpkg: error: parsing file ‘/var/lib/dpkg/updates/0045’ near line 0: newline in fieldname `#padding’
cd /var/lib/dpkg/updates && sudo rm -rf 0045
Afterwards, I got to know about a new thing that is Google App Engine. One can follow this to run a basic Java Application: Guestbook
Apart from this, one of the best page for understanding GAE’s datastore: https://github.com/objectify/objectify/wiki/Concepts
I will be discussing about the key areas where I got stuck:
You need to have Maven version 3.5, I was having 3.1.1 which got me in trouble. Later, I was with 3.3.x which made things set straight.
But still, 3.5 is advisable.
Also, one of the other dependency is JDK.
p class=”lang-java prettyprint prettyprinted”>
sudo add-apt-repository ppa:webupd8team/java -y
sudo apt-get update
sudo apt-get install oracle-java8-installer
Now you don’t need to bother about Dependencies, let Maven do it’s job.
What is Maven? Maven addresses two aspects of building software: first, it describes how software is built, and second, it describes its dependencies. It is a build automation tool used primarily for Java projects.
In Yiddish, the word maven means “accumulator of knowledge” 🙂
Though, Maven creates it own new VM. Hence, for accessing it on remote browser. You need to do some changes in pom.xml file. Just add:
A Project Object Model or POM is the fundamental unit of work in Maven. It is an XML file that contains information about the project and configuration details used by Maven to build the project. It contains default values for most projects.
Now, you can see your work on http://Ip_Address:8080
I also get acquainted about Java Servlets and JSP. Give a look: http://met.guc.edu.eg/OnlineTutorials/JSP%20-%20Servlets/A%20servlet%20example.aspx