I am trying to 'build' Floodlight. I've stumbled upon compilation issue that is fairly self-explanatory, ie:
> compile:
> [javac] Compiling 593 source files to /mnt/sda1/floodlight/floodlight/target/bin
> [javac] warning: [options] bootstrap class path not set in conjunction with -source 8
> [javac] /mnt/sda1/floodlight/floodlight/src/main/java/net/floodlightcontroller/loadbalancer/LoadBalancer.java:57:
> error: package javafx.util does not exist
> [javac] import javafx.util.Pair;
> [javac] ^
> [javac] /mnt/sda1/floodlight/floodlight/src/main/java/net/floodlightcontroller/statistics/IStatisticsService.java:10:
> error: package javafx.util does not exist
> [javac] import javafx.util.Pair;
> [javac] ^
> [javac] /mnt/sda1/floodlight/floodlight/src/main/java/net/floodlightcontroller/loadbalancer/LoadBalancer.java:138:
> error: cannot find symbol
> [javac] protected HashMap<Pair<Match,DatapathId>,String> flowToVipId;
> [javac] ^
> [javac] symbol: class Pair
> [javac] location: class LoadBalancer
> [javac] /mnt/sda1/floodlight/floodlight/src/main/java/net/floodlightcontroller/statistics/IStatisticsService.java:25:
> error: cannot find symbol
[and so on]
I've of course tried adding javafx via apt like this:
root@hp-linux: apt install openjfx
root@hp-linux:/mnt/sda1/floodlight/floodlight# dpkg-query -L openjfx
/.
/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
It seems like indeed, javafx.utils is not there. How do I fix that? I've tried pretty much everything I've been able to find in the Internet, but to no avail.
As openjfx is no longer supported upstream, Ubuntu 18.04 decided not to support openjfx 8 anymore and replaced it with openjfx 11. If you are an SDN-man you should know that Floodlight supports Java 8 and so the problem will be found here. I shared a post right now that I wish could help you. How to install Floodlight controller on Ubuntu 18.04 LTS alongside with Openjfx
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.