Java for a webapp

Connect with other users about what to run on your webhosting (and how to run it) here.
Post Reply
Naltan
New to forums
New to forums
Posts: 2
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Wed Oct 03, 2018 8:23 pm

Java for a webapp

Post by Naltan »

Hi, I was hoping to host my webapp on the webserver I'm currently using. It runs on Java (since it's the one lang that I'm the least terrible at), but I noticed that the webserver doesn't have java pre-installed. Is there something I have to do in order to enable it, or do I have to purchase a different package for it?
Naltan
New to forums
New to forums
Posts: 2
Joined: Wed Oct 03, 2018 8:23 pm

Re: Java for a webapp

Post by Naltan »

Nevermind, please close this.

For anyone running in to the same problem as me: make sure you're downloading the correct version of java.
Link to DL: https://www.java.com/en/download/linux_manual.jsp
Download and install:

Code: Select all

mkdir ~/bin
cd ~/bin
wget http://javadl.oracle.com/webapps/download/AutoDL?BundleId=234464_96a7b8442fe848ef90c96a2fad6ed6d1
mv AutoDL\?BundleId\=234464_96a7b8442fe848ef90c96a2fad6ed6d1 java.tar.gz
tar -xzf java.tar.gz
mv jre1.8.0_181 java
rm java.tar.gz
echo "alias java='~/bin/java/bin/java' >> ~/.bash_profile
Post Reply