after installing java:
sudo apt-get install libjna-java
Now, download and install jdownloader:
mkdir jd2
cd jd2
curl -O http://installer.jdownloader.org/JDownloader.jar
java -Djava.awt.headless=true -jar /home/osmc/jd2/JDownloader.jar
after a long time of: ... Update Progress: 32,835% Update Message: Download Updates... ...
kill the java process executing jdownloader and launch again with:
java -Djava.awt.headless=true -jar /home/osmc/jd2/JDownloader.jar
This time, jdownloader will ask you your myjdownloader credentials:
|---------------------------Headless Information-------------------------------
| MyJDownloader Setup
| Los datos de la cuenta de 'My.JDownloader' no son correctos.
| Compruebe su Nombre de Usuario/Correo Electrónico y Contraseña!
| Enter y -> Enter Logins
| Enter n -> Exit JDownloader
$ y
| Please Enter your MyJDownloader Email:
| Please Enter your MyJDownloader Password(not visible):
|------------------------------------------------------------------------------
Ctrl+Z
bg %1
To automate launh of Jdownloader on restart:
$ crontab -e
enter the line:
@reboot java -Djava.awt.headless=true -jar /home/osmc/jd2/JDownloader.jar