2

There still isn't any post here in AskUbuntu about how to install the JDownloader 2 yet, so I decided to write this one. I googled a way to, and found one, but I sincerely think that there might be other ways, so I hope that you will share instructions for other ways to install it.

  • 1
    Btw, is the add-apt-repository better than installing from a silent installer script? I don't know the diferences. – Gui Imamura Nov 16 '14 at 22:59
  • Also, I can't create new tag JDownloader2. I'll let the community to decide wether or not to create the new tag; please change this question's tag if the new tag is created. – Gui Imamura Nov 16 '14 at 23:09
8

Firstly, get the silent installer script for your system type. For instructions on how to check your system type, read this. Open your terminal by typing Ctrl+Alt+T then type or copy&paste the following command:

  • 32-bit OS:
wget http://installer.jdownloader.org/JD2SilentSetup_x86.sh
  • 64-bit OS:
wget http://installer.jdownloader.org/JD2SilentSetup_x64.sh

Wait untill the download finishes, then give it executable permission and run it (don't forget to change JD2SilentSetup*.sh to the correct file name):

chmod +x JD2SilentSetup*.sh
./JD2SilentSetup*.sh

It'll bring up the install wizard. Follow the instructions and it will install automatically for you.
Thanks to Ji M for posting instructions on UbuntuHandBook.
Thanks to @MemPrices for letting us know that the necessary Java packages come built in the SH installer, so users don't have to install it beforehand.

3

I woul like to tell you that actually any SH installer of JDownloader has its own Java Version, independent of the one you have installed into your system. So, basically, There's no need to pre-install Java before running the installer.

Nice day!

  • Hello, thank you for sharing this with us! I'll edit my answer, but can you also share any source? I can't look for it right now :( – Gui Imamura Jul 5 '15 at 23:55
  • Hi. I've confirmed it, it has a folder called jre in it and apparently has everything inside it. In case someone is concerned about it, I'll test if it works without preinstalling Java, when I have some more time to. – Gui Imamura Jul 20 '15 at 22:20
  • I've confirmed this and editted my answer. Thanks a lot! – Gui Imamura Sep 14 '15 at 17:05
1

One improvement though, as you pointed out in earlier posts, jDownloader 2 has a Java jre/ folder bundled with it, which size is ~ 147 MB. This is not useful in any Ubuntu distribution. Debian / Ubuntu provides java-7-openjdk packages that will be shared by all applications using Java. You may have installed as well Oracle java 7 or 8 from packages build by webupd8.org Install Oracle Java 8.

OpenJDK can be installed via Ubuntu's package system by running this command:

$ sudo apt-get install openjdk-7-jdk icedtea-7-plugin

Function of each package:

openjdk-7-jdk OpenJDK Development Kit (JDK)

icedtea-7-plugin web browser plugin based on OpenJDK and IcedTea to execute Java applets

These packages are installed in /usr/lib/jvm then you will see folder java-7-openjdk for OpenJDK and java-7-oracle or/and java-8-oracle for Java Oracle. Each of these install do have a jre/ folder.

In addition the Java version used by default in your system should be defined (system wide for all users) in the file /etc/profile e.g. for java-7-openjdk

JAVA_HOME=/usr/local/java/jdk1.7.0_09
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
JRE_HOME=/usr/local/java/jre1.7.0_09
PATH=$PATH:$HOME/bin:$JRE_HOME/bin
export JAVA_HOME
export JRE_HOME
export PATH

You may have to add or edit it, as the Ubuntu system uses update-alternatives to switch between installed versions of Java. These symbolic links are not per jre/ folder but per executable file i.e. java javac ...

Then you have to edit the Bash launch script jd2/JDownloader2 located in your home folder (echo $HOME in a Terminal), to add the following line as the first line of code below the comments ending #INSTALL4J_ADD_VM_PARAMS=

INSTALL4J_JAVA_HOME_OVERRIDE="$JAVA_JRE"

Or if you didn't define the jre/ folder

INSTALL4J_JAVA_HOME_OVERRIDE="$JAVA_HOME"/jre

Afterwards you can remove the bundled jd2/jre folder. That would save you ~ 147 MB and have your Java JRE managed by the Ubuntu system.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.