jBART. Preparing UBUNTU

Автор: | 25.01.2015

Very often, users have many questions about how to run jbart on ubuntu/linux. Here I will describe everything that needs to be done in the system to successfully launch jbart.

All of the data are valid for versions of Ubuntu 14.04 and above (tested on Ubuntu 15.04 amd64).

Install Oracle Java 8

Check if you have installed java

java -version

If you have installed openjdk, you should remove it first:

sudo apt-get remove openjdk*

PPA repository webupd8 contains packages for Oracle Java SE: JDK, JRE and Java browser plugin.

First, we need to add this repository to the system. Open terminal and issue:

sudo add-apt-repository ppa:webupd8team/java

Update packages:

sudo apt-get update

To install Oracle Java 8 issue in terminal:

sudo apt-get install oracle-java8-installer

You have to accept license agreement during install process.

Make sure that you’ve installed Oracle Java 8:

java -version

You should see something like this:

java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

Also check the java compiler version (javaс):

javac -version

You should see:

javac 1.8.0_60

Check that javac and java versions are equals!

Settings JAVA_HOME system variable

Optional you can set JAVA_HOME system variable:

Open .bashrc file from the root of your home directory in your favorite text editor, and append to the end of this file:

export JAVA_HOME=/usr/lib/jvm/java-8-oracle

Apply changes:

source ~/.bashrc

Done! Now JAVA_HOME variable is in PATH.

Launch jbart

After you have java installed, go to the jbart’s directory, right click on jbart3h.jar file, select Properties and on the Permissions tab set Allow to run (x permission). Then, click Open with and choose Oracle Java 8 Runtime and click Set as default.

Now you can launch jbart by double-clicking on jbart3h.jar file.

Installing dependencies

If your system is x64 Ububntu/Linux, you have to install 32-bit libraries for aapt.

sudo apt-get install lib32stdc++6 lib32z1