Report this

What is the reason for this report?

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

Posted on December 5, 2015

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.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Hello, 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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.