Installation steps for CupCarbon IoT Simulator on Ubuntu 18.04.3 LTS
1. Download the CubCarbon simulator tools from the given
link:
2. Now, open your terminal in Ubuntu (or Press ctrl+alt+t)
3. Update the terminal before install by the command
$
sudo apt-get update
$ sudo
apt-get upgrade
4. After update please make sure you have latest version of
java by the command "$ java -version"
java 11 should be their.
5. Than run below command and select “0”
$ sudo update-alternatives --config java
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
<enter> to keep the current choice[*], or type selection number: 0
6.Since Java 11
does not have javafx support. Oracle removed it. But you can add javafx to your
project using below command
$ sudo apt install openjfx
7. List the javafx library location using below command
$ dpkg-query -L openjfx
The
output should be like this:
/usr
/usr/share /usr/share/doc /usr/share/doc/openjfx
/usr/share/doc/openjfx/TODO.Debian /usr/share/doc/openjfx/changelog.Debian.gz
/usr/share/doc/openjfx/copyright /usr/share/openjfx /usr/share/openjfx/lib
/usr/share/openjfx/lib/javafx.properties /usr/share/openjfx/lib/javafx.base.jar
/usr/share/openjfx/lib/javafx.controls.jar
/usr/share/openjfx/lib/javafx.fxml.jar
/usr/share/openjfx/lib/javafx.graphics.jar /usr/share/openjfx/lib/javafx.media.jar
/usr/share/openjfx/lib/javafx.swing.jar /usr/share/openjfx/lib/javafx.web.jar
8. Now, after installation java
environment in your system, then extract your downloaded CupCarbon.zip
file & give read write execute permission to .jar file using below
commands.
$
unzip CupCarbon.zip
$
chmod +x cupcarbon.jar
9. Finally, Run the jar application by
including the javafx path and modules:
$
java --module-path $PATH_TO_OPENJFX-LIB --add-modules
module_1,module_2,module_3,...,module_n -jar $PATH_TO_JAR_FILE
Example:
$ java --module-path
/usr/share/openjfx/lib
--add-modules=javafx.controls,javafx.fxml,javafx.base,javafx.media,javafx.web,javafx.swing
-jar '/home/ayaz/Downloads/CupCarbon/cupcarbon.jar'
10. Now your CupCarbon IoT Simulator is
ready to open.
|
|
Copyright 2019 by
Ayaz Ullah Khan (Feel Free To Contact on blogofayaz@gmail.com)
|
|