specific steps in setting up Java 7, Glassfish and mySQL on my droplet

Posted December 5, 2015 3.6k views
MySQLGetting StartedJava

At the behest of my Java instructor, I created a Digital Ocean account and set up a droplet, then left me hanging about what to do next. I am a newbie programmer, so I need some hand holding, in some regards. I created a Java program on NetBeans that I need to load up, so I know I need to load up on my droplet, Java 7 and the Glassfish web container, along with my simple mySQL database. Very specific directions will be appreciated.

This is what I am looking at right now in my console: root@pharmdb: ~# <– next steps from here, please - thx!

NOTE: pharmdb is the name of my droplet.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Sounds like an interesting project, always good to learn new things in new environments. We got alot of tutorials on the DO community. You can use this tutorial to setup a Java web server for Ubuntu. If you need Java7 instead, use the following commands instead at “Step Four - Install Java Development Kit (Optional)” :

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

It’ll keep your java 7 installation up to date.

To automatically set up the Java 7 environment variables JAVA_HOME and PATH:

sudo apt-get install oracle-java7-set-default

Hope you will figure it out now, if you can’t get it working put a reply here or you can add me on skype: cryptic-designs

by Mitchell Anicas
Apache Tomcat is a web server and servlet container that is used to serve Java applications. Tomcat is an open source implementation of the Java Servlet and JavaServer Pages technologies, released by the Apache Software Foundation. This tutorial covers the basic installation and some configuration of Tomcat 7.0.x on Ubuntu 14.04.