Conflicting Version Warning (JavaFX, JDK, JRE)

I'm actually trying to follow the JavaFX tutorial, and when I run my Main application for preview, it shows me this warning in the console:

Feb 24, 2017 12:55:20 PM javafx.fxml.FXMLLoader$ValueElement processValue
WARNING: Loading FXML document with JavaFX API of version 8.0.111 by JavaFX runtime of version 8.0.60
Feb 24, 2017 12:55:20 PM javafx.fxml.FXMLLoader$ValueElement processValue
WARNING: Loading FXML document with JavaFX API of version 8.0.111 by JavaFX runtime of version 8.0.60

I was looking for a bit, and it looks like I have different versions of JDK / JRE or something like that, here is the result of this code that I found in this thread :

System.out.println("java version: "+System.getProperty("java.version"));
System.out.println("javafx.version: " + System.getProperty("javafx.version"));

EXIT:
java version: 1.8.0_121
javafx.version: 8.0.60

OUTPUT from java -version command:

openjdk version "1.8.0_121"
OpenJDK Runtime Environment (build 1.8.0_121-8u121-b13-0ubuntu1.16.04.2-b13)
OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)

i went to this place: / usr / lib / jvm / java-8-openjdk-amd64 / jre / bin / java and found 2 folders "java-1.8.0-openjdk-amd64" and "java-8-openjdk-amd64 "(both are the same size), so maybe this is a conflict of two versions? What should I do to solve the problem?

"" , :

No command 'alternatives' found, did you mean:
Command 'galternatives' from package 'galternatives' (universe)
alternatives: command not found

, , , java...

: (sudo update-alternatives --config java) , OUTPUT:

There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
Nothing to configure.

, , java...

: openjdk-8 oracle Java-8
1) openjdk-8 ubuntu :
sudo apt-get purge openjdk-8-* ( Java http://www.2daygeek.com/remove-uninstall-oracle-java-openjdk-on-ubuntu-centos-debian-fedora-mint-rhel-opensuse/)

2) Oracle Java-8 :

sudo apt-get install oracle-java8-set-default

(http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html)

+4
1

, JavaFx JRE/JDK, .

Linux "" . OpenJDK ; / JavaFx.

, " " - "" JDK Oracle. "" , : JDK Oracle .

+1

Source: https://habr.com/ru/post/1670739/


All Articles