Can you confirm this is correct for Java install?
ubuntu@ubuntu:~/Desktop$ sudo apt-get install -y openjdk-8-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
ca-certificates-java fonts-dejavu-extra java-common libbonobo2-0
libbonobo2-common libgif7 libgnome-2-0 libgnome2-common libgnomevfs2-0
libgnomevfs2-common libice-dev liborbit-2-0 libpthread-stubs0-dev libsm-dev
libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxt-dev
openjdk-8-jdk-headless openjdk-8-jre openjdk-8-jre-headless
x11proto-core-dev x11proto-input-dev x11proto-kb-dev xorg-sgml-doctools
xtrans-dev
Suggested packages:
default-jre libbonobo2-bin desktop-base libgnomevfs2-bin libgnomevfs2-extra
gamin | fam gnome-mime-data libice-doc libsm-doc libxcb-doc libxt-doc
openjdk-8-demo openjdk-8-source visualvm icedtea-8-plugin
openjdk-8-jre-jamvm fonts-ipafont-gothic fonts-ipafont-mincho
ttf-wqy-microhei | ttf-wqy-zenhei fonts-indic
The following NEW packages will be installed:
ca-certificates-java fonts-dejavu-extra java-common libbonobo2-0
libbonobo2-common libgif7 libgnome-2-0 libgnome2-common libgnomevfs2-0
libgnomevfs2-common libice-dev liborbit-2-0 libpthread-stubs0-dev libsm-dev
libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxt-dev
openjdk-8-jdk openjdk-8-jdk-headless openjdk-8-jre openjdk-8-jre-headless
x11proto-core-dev x11proto-input-dev x11proto-kb-dev xorg-sgml-doctools
xtrans-dev
0 upgraded, 29 newly installed, 0 to remove and 0 not upgraded.
Need to get 35.5 MB/41.4 MB of archives.
After this operation, 169 MB of additional disk space will be used.
Err:1
http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 openjdk-8-jre-headless amd64 8u91-b14-0ubuntu4~16.04.1
404 Not Found [IP: 91.189.88.161 80]
Ign:2
http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 openjdk-8-jre amd64 8u91-b14-0ubuntu4~16.04.1
Ign:3
http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 openjdk-8-jdk-headless amd64 8u91-b14-0ubuntu4~16.04.1
Ign:4
http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 openjdk-8-jdk amd64 8u91-b14-0ubuntu4~16.04.1
Err:1
http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 openjdk-8-jre-headless amd64 8u91-b14-0ubuntu4~16.04.1
404 Not Found [IP: 91.189.88.161 80]
Err:2
http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 openjdk-8-jre amd64 8u91-b14-0ubuntu4~16.04.1
404 Not Found [IP: 91.189.88.161 80]
Err:3
http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 openjdk-8-jdk-headless amd64 8u91-b14-0ubuntu4~16.04.1
404 Not Found [IP: 91.189.88.161 80]
Err:4
http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 openjdk-8-jdk amd64 8u91-b14-0ubuntu4~16.04.1
404 Not Found [IP: 91.189.88.161 80]
E: Failed to fetch
http://archive.ubuntu.com/ubuntu/pool/main/o/openjdk-8/openjdk-8-jre-headless_8u91-b14-0ubuntu4~16.04.1_amd64.deb 404 Not Found [IP: 91.189.88.161 80]
E: Failed to fetch
http://archive.ubuntu.com/ubuntu/pool/main/o/openjdk-8/openjdk-8-jre_8u91-b14-0ubuntu4~16.04.1_amd64.deb 404 Not Found [IP: 91.189.88.161 80]
E: Failed to fetch
http://archive.ubuntu.com/ubuntu/pool/main/o/openjdk-8/openjdk-8-jdk-headless_8u91-b14-0ubuntu4~16.04.1_amd64.deb 404 Not Found [IP: 91.189.88.161 80]
E: Failed to fetch
http://archive.ubuntu.com/ubuntu/pool/main/o/openjdk-8/openjdk-8-jdk_8u91-b14-0ubuntu4~16.04.1_amd64.deb 404 Not Found [IP: 91.189.88.161 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Then... Maven
ubuntu@ubuntu:~/Desktop$ tar xzvf apache-maven-3.3.9-bin.tar.gz
apache-maven-3.3.9/boot/plexus-classworlds-2.5.2.jar
apache-maven-3.3.9/lib/maven-embedder-3.3.9.jar
apache-maven-3.3.9/lib/maven-settings-3.3.9.jar
apache-maven-3.3.9/lib/plexus-utils-3.0.22.jar
apache-maven-3.3.9/lib/maven-core-3.3.9.jar
apache-maven-3.3.9/lib/maven-model-3.3.9.jar
apache-maven-3.3.9/lib/commons-lang3-3.4.jar
apache-maven-3.3.9/lib/maven-settings-builder-3.3.9.jar
apache-maven-3.3.9/lib/maven-builder-support-3.3.9.jar
apache-maven-3.3.9/lib/plexus-interpolation-1.21.jar
apache-maven-3.3.9/lib/plexus-component-annotations-1.6.jar
apache-maven-3.3.9/lib/plexus-sec-dispatcher-1.3.jar
apache-maven-3.3.9/lib/plexus-cipher-1.7.jar
apache-maven-3.3.9/lib/maven-repository-metadata-3.3.9.jar
apache-maven-3.3.9/lib/maven-artifact-3.3.9.jar
apache-maven-3.3.9/lib/maven-plugin-api-3.3.9.jar
apache-maven-3.3.9/lib/org.eclipse.sisu.plexus-0.3.2.jar
apache-maven-3.3.9/lib/cdi-api-1.0.jar
apache-maven-3.3.9/lib/jsr250-api-1.0.jar
apache-maven-3.3.9/lib/javax.inject-1.jar
apache-maven-3.3.9/lib/org.eclipse.sisu.inject-0.3.2.jar
apache-maven-3.3.9/lib/maven-model-builder-3.3.9.jar
apache-maven-3.3.9/lib/guava-18.0.jar
apache-maven-3.3.9/lib/maven-aether-provider-3.3.9.jar
apache-maven-3.3.9/lib/aether-api-1.0.2.v20150114.jar
apache-maven-3.3.9/lib/aether-spi-1.0.2.v20150114.jar
apache-maven-3.3.9/lib/aether-util-1.0.2.v20150114.jar
apache-maven-3.3.9/lib/aether-impl-1.0.2.v20150114.jar
apache-maven-3.3.9/lib/guice-4.0-no_aop.jar
apache-maven-3.3.9/lib/aopalliance-1.0.jar
apache-maven-3.3.9/lib/maven-compat-3.3.9.jar
apache-maven-3.3.9/lib/wagon-provider-api-2.10.jar
apache-maven-3.3.9/lib/slf4j-api-1.7.5.jar
apache-maven-3.3.9/lib/commons-cli-1.2.jar
apache-maven-3.3.9/lib/wagon-http-2.10-shaded.jar
apache-maven-3.3.9/lib/wagon-http-shared-2.10.jar
apache-maven-3.3.9/lib/jsoup-1.7.2.jar
apache-maven-3.3.9/lib/commons-lang-2.6.jar
apache-maven-3.3.9/lib/commons-io-2.2.jar
apache-maven-3.3.9/lib/wagon-file-2.10.jar
apache-maven-3.3.9/lib/aether-connector-basic-1.0.2.v20150114.jar
apache-maven-3.3.9/lib/aether-transport-wagon-1.0.2.v20150114.jar
apache-maven-3.3.9/lib/slf4j-simple-1.7.5.jar
apache-maven-3.3.9/README.txt
apache-maven-3.3.9/LICENSE
apache-maven-3.3.9/NOTICE
apache-maven-3.3.9/lib/
apache-maven-3.3.9/lib/aether-api.license
apache-maven-3.3.9/lib/aether-connector-basic.license
apache-maven-3.3.9/lib/aether-impl.license
apache-maven-3.3.9/lib/aether-spi.license
apache-maven-3.3.9/lib/aether-transport-wagon.license
apache-maven-3.3.9/lib/aether-util.license
apache-maven-3.3.9/lib/cdi-api.license
apache-maven-3.3.9/lib/commons-lang3.license
apache-maven-3.3.9/lib/jsoup.license
apache-maven-3.3.9/lib/jsr250-api.license
apache-maven-3.3.9/lib/maven-aether-provider.license
apache-maven-3.3.9/lib/maven-artifact.license
apache-maven-3.3.9/lib/maven-builder-support.license
apache-maven-3.3.9/lib/maven-compat.license
apache-maven-3.3.9/lib/maven-core.license
apache-maven-3.3.9/lib/maven-embedder.license
apache-maven-3.3.9/lib/maven-model-builder.license
apache-maven-3.3.9/lib/maven-model.license
apache-maven-3.3.9/lib/maven-plugin-api.license
apache-maven-3.3.9/lib/maven-repository-metadata.license
apache-maven-3.3.9/lib/maven-settings-builder.license
apache-maven-3.3.9/lib/maven-settings.license
apache-maven-3.3.9/lib/org.eclipse.sisu.inject.license
apache-maven-3.3.9/lib/org.eclipse.sisu.plexus.license
apache-maven-3.3.9/lib/plexus-cipher.license
apache-maven-3.3.9/lib/plexus-sec-dispatcher.license
apache-maven-3.3.9/lib/slf4j-api.license
apache-maven-3.3.9/lib/slf4j-simple.license
apache-maven-3.3.9/lib/wagon-file.license
apache-maven-3.3.9/lib/wagon-http-shared.license
apache-maven-3.3.9/lib/wagon-http.license
apache-maven-3.3.9/lib/wagon-provider-api.license
apache-maven-3.3.9/bin/m2.conf
apache-maven-3.3.9/bin/mvn.cmd
apache-maven-3.3.9/bin/mvnDebug.cmd
apache-maven-3.3.9/bin/mvn
apache-maven-3.3.9/bin/mvnDebug
apache-maven-3.3.9/bin/mvnyjp
apache-maven-3.3.9/conf/
apache-maven-3.3.9/conf/logging/
apache-maven-3.3.9/conf/logging/simplelogger.properties
apache-maven-3.3.9/conf/settings.xml
apache-maven-3.3.9/conf/toolchains.xml
apache-maven-3.3.9/lib/ext/
apache-maven-3.3.9/lib/ext/README.txt
But I can't get anywhere with this: export PATH=$PATH:$(pwd)/apache-maven-3.3.9
Is this a proper command or am I not understanding how it is to be used?
It appears Maven is not installed as I still get the same error with BitcoinJ