SHARE
TWEET

Java Early Access Installation on Ubuntu 18.04

Ghwomb Sep 11th, 2019 (edited) 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Dump on how to install OpenJDK and OpenJFX, both on version 13.
  2.  
  3. #OpenJDK 13 (early build version)
  4. sudo add-apt-repository ppa:openjdk-r/ppa
  5. sudo apt-get update
  6. sudo apt install openjdk-13-jre openjdk-13-jdk
  7. java -version
  8.  
  9. #OpenJFX 13
  10. #Download and unpack from http://gluonhq.com/download/javafx-13-sdk-linux/ to your home directory
  11. cd /usr/lib
  12. sudo cp -r ~/javafx-sdk-13/ .
  13. export PATH_TO_FX=/usr/lib/jvm/javafx-sdk-13/lib
  14. #Download https://github.com/openjfx/samples/blob/master/HelloFX/CLI/hellofx/HelloFX.java
  15. #Make a test run with
  16. javac --module-path $PATH_TO_FX --add-modules javafx.controls HelloFX.java
  17. java --module-path $PATH_TO_FX --add-modules javafx.controls HelloFX
  18.  
  19.  
  20. #Make the path more permanent (this might not work).
  21. #Add the following lines to your ~/.profile:
  22. export JAVAFX_HOME="/usr/share/java/openjfx"
  23. export PATH_TO_FX="/usr/lib/jvm/javafx-sdk-13/lib"
  24. #Use one of the follwing:
  25. export _JAVA_OPTIONS="--module-path=$JAVAFX_HOME --add-modules=ALL-MODULE-PATH"
  26. #or
  27. export _JAVA_OPTIONS="--module-path=/usr/share/java/openjfx --add-modules=ALL-MODULE-PATH"
  28. #Save quit and reload using
  29. source ~/.profile
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top