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 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:
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.
|
No comments:
Post a Comment