Hi everyone! Especially Axoloti developers who have install Ubuntu 16.04.
This is just a note if you are running on Ubuntu 16.04. I'm using Ubuntu Studio 16.04 in this case.
There are a few small changes you'll need to do:
- Ubuntu 16.04 doesn't support openjdk-7-jdk like prev. versions. It supports 8 and 9 IIUC. You will see a message like this:
Package openjdk-7-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or ...
When you get this, you need to add a repo by following the instructions here:
It's really simple, only three commands:
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-7-jdk
- Next you will have to set your JAVA_HOME variable to point to jdk 7. You will get an error message like this:
/home/enzo/axoloti/nbproject/build-impl.xml:911: The following error occurred while executing this line:
/home/enzo/axoloti/nbproject/build-impl.xml:261: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/jvm/java-8-openjdk-amd64/jre"
To fix this, follow the directions here: https://www.unixmen.com/installing-java-jrejdk-ubuntu-16-04/
There may be more elegant ways to do this. (Does anyone know how to make it so only Axoloti uses jdk 7?) But for now, I handled it by adding this line to the end of my ~/.bashrc file:
Then don't forget to run this to make it effective for your current shell:
Happy patching and developing!!!!!