Skip to content

Builder _ Installation _ LINUX _ old

Calvin Hass edited this page Jan 6, 2019 · 4 revisions

Return to GUIslice Builder documentation

Installing GUIslice Builder on LINUX

NOTE: The following archived instructions are based on installing GUIslice Builder 0.10.4-beta5.

EMAIL SUPPORT: During the beta, please feel free to send an email to [email protected] with any comments, questions or suggestions you might have

If you are not using Arduino's IDE you will need to download a Java runtime, otherwise jump to GUIslice Builder Setup.

You can download Java 8 JRE by opening a terminal and using:

sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update

sudo apt install openjdk-8-jre

GUIslice Builder Setup

GUIslice Builder binary location:

Download and unpack builder-linux64-X.Y.Z.tar.gz into your desired directory. Example:

cd $HOME
tar xvzf builder-linux64-X.Y.Z.tar.gz

You will need to set execute permission on the GUIslice.sh script to run the builder.

cd GUIsliceBuilder/bin
chmod +x GUIslice.sh

Edit GUIslice.sh to add the full path to Java's location.

Example for using the built-in Java for Arduino IDE

#!/bin/sh
export JAVA_HOME=/home/<username>/Desktop/arduino_1.87/java
export CLASSPATH=$JAVA_HOME/lib
$JAVA_HOME/bin/java -jar builder-1.0.jar $@&

Example for using the downloaded Java 8 JRE

If you have more then one Java version installed you need to identify what directory has the Java 8 JRE. You can use this command to find it.

sudo update-alternatives --config java

Example output: There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1101      auto mode
  1            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1101      manual mode
  2            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      manual mode

Press to keep the current choice[*], or type selection number:

If java-8-openjdk is set to auto-mode you don't need to have a JAVA_HOME. Your GUIslice.sh script can simply be:

#!/bin/sh
java -jar builder-1.0.jar $@&

Otherwise use this as an Example:

#!/bin/sh
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
export CLASSPATH=$JAVA_HOME/lib
$JAVA_HOME/bin/java -jar builder-1.0.jar $@&

Running GUIslice Builder

You can try the builder by: ./GUIslice.sh

Clone this wiki locally