There are several ways to get up and running with binjr:
Download an application bundle¶
The simplest way to start using binjr is to download an application bundle from the download page.
These bundles contain all the dependencies required to run the app, including a copy of the Java runtime specially crafted to only include the required components and save disk space. They are less than 60 MB in size and there is one for each of the supported platform.
Build from source¶
You can also build or run the application from the source code.
If you want to build native installer packages, you’ll also need the following platform specific prerequisites:
Clone the repo from Github:
git clone https://github.com/binjr/binjr/
Use the included gradle wrapper to:
Build all the modules
sh gradlew build
Build and start the application
sh gradlew run
Build all application bundles for the platform on which you run the build
sh gradlew clean packageDistribution
gradlew.bat clean packageDistribution
Make sure you run the
cleantask in between two executions of a
package<...>task in the same environment.
Build a specific application bundle for the platform on which you run the build
sh gradlew clean packageAsTar
sh gradlew clean packageAsDeb
sh gradlew clean packageAsRpm
sh gradlew clean packageAsTar
sh gradlew clean packageAsDmg
gradlew.bat clean packageAsZip
gradlew.bat clean packageAsMsi
Please note that it is generally not possible to cross-build application bundles (e.g. build a bundle for macOS while running under Windows)
From the command line¶
You can also start binjr simply by running a single command line. Running binjr that way means that you don’t need to worry about keeping your copy up to date: it will always start the latest version that was published over on Maven Central.
In order to run binjr that way, you need to have Apache Maven installed on your machine and your JAVA_HOME environment variable must point at a copy of a Java runtime version 11 or later.
mvn exec:java@java -f <(curl https://binjr.eu/run-binjr.pom)
curl https://binjr.eu/run-binjr.pom > %temp%\run-binjr.pom & mvn exec:java@java -f %temp%\run-binjr.pom
You can also use the
binjr.versionproperty to start a specific version of binr:
mvn exec:java@java -f <(curl https://binjr.eu/run-binjr.pom) -Dbinjr.version=2.17.1
curl https://binjr.eu/run-binjr.pom > %temp%\run-binjr.pom & mvn exec:java@java -f %temp%\run-binjr.pom -Dbinjr.version=2.17.1
Downloaded components are cached locally by Maven, so it doesn’t need to download them again every time you run the application.
Trying it out¶
If you’d like to experience binjr’s visualization capabilities but do not have a compatible data source handy, you can use the demonstration data adapter.
It is a plugin which embeds a small, stand-alone data source that you can readily browse using binjr.
- Make sure binjr is installed on your system and make a note of the folder it is installed in.
- Download the
binjr-adapter-demo-3.x.x.ziparchive from https://github.com/binjr/binjr-adapter-demo/releases/latest
- Copy the
binjr-adapter-demo-3.x.x.jarfile contained in the zip file into the
pluginsfolder of your binjr installation.
- Start binjr (or restart it if it was runnning when you copied the plugin) and open the
demo.bjrworkspace contained in the zip (from the command menu, select
Workspaces > Open..., or press Ctrl+O)