Questions tagged [javafx]

The JavaFX platform enables developers to create and deploy Rich Internet Applications (RIA) that behave consistently across multiple platforms and browsers. Questions about programming with JavaFX should be asked at Stack Overflow Q&A.

The JavaFX platform enables developers to create and deploy Rich Internet Applications (RIA) that behave consistently across multiple platforms and browsers. It is built on Java technology and is part of the default JDK since JDK 1.8.

58 questions
24
votes
5 answers

JavaFX missing, Ubuntu 18.04

I have Java 8 and Ubuntu 18.04. I'm using NetBeans and when tried to make some program, it couldn't be done because JavaFX is missing. I installed Java JDK with NetBeans from Oracle's site and thought everything is included but obviously I didn't…
maria
  • 915
22
votes
4 answers

java.lang.NoClassDefFoundError: javafx/application/Application

I installed OpenJDK-11 as described here. I ran sudo apt install openjfx My java version: $ java -version openjdk version "11.0.3" 2019-04-16 OpenJDK Runtime Environment (build 11.0.3+7-Ubuntu-1ubuntu1) OpenJDK 64-Bit Server VM (build…
kerner1000
  • 4,530
15
votes
2 answers

Global Menu for JavaFX Applications

I know that we can enable global menu for Java Swing applications using Jayatana. But I am searching for global menu support for JavaFX applications. After searching on it, I have found that setUseSystemMenuBar is used in JavaFX to enable same kind…
Gobinath
  • 3,392
8
votes
1 answer

JavaFX for Ubuntu 16.04 not installed

I tried to install javafx for ubuntu as described in the answer here but the libraries it mentions were not added to my jdk folder after the installation. Specifically only the ant-javafx.jar is added. My ubuntu is 16.04 and I have the openjkd-8…
7
votes
1 answer

How to install Java9 with JavaFX?

I installed Java9 as described here. This works without any problems for any projects I tried without JavaFX. Unfortunately my company runs its UIs with JavaFX and those packages seem to be missing. I also evaluated using the openjdk plus the…
tgr
  • 171
6
votes
2 answers

Install JavaFX scene builder 2.0 on Ubuntu 14.10

I am beginning my work on a JavaFX application for which I am using Intellij Idea ide. I have Java 8 installed on my system and I can see JavaFXSceneBuilder 1.1 in my system installed. But as I read in Oracle documentation, Java 8 comes with…
We are Borg
  • 572
  • 3
  • 7
  • 22
6
votes
3 answers

How to install & run java 8 and javafx on Ubuntu 18.04

I'd like to install java 8 and javafx on ubuntu 18.04. I installed openjdk-8-jdk, openjfx and openjdk-8-jre via apt but a compilation of hello world app fails since javac is unable to locate javafx. $ sudo apt install openjdk-8-jdk openjfx…
matusf
  • 351
5
votes
1 answer

Under Ubuntu 18.04 my Java 10 application doesn't scale with the screen

I am programming a Java 10 application using JavaFX for the UI. Under Ubuntu 16.04 the application was sized appropriately. Under 18.04 suddenly the application is scaled to half its size. I need to get it scaled properly. I found out that the…
4
votes
1 answer

How to install libavcodec53 and libavformat53 so that I can use JavaFx in Ubuntu 16.04

I want to use JavaFX in Ubuntu. According to this link, I have to install libavcodec53 and libavformat53. I googled and came across sites like this, which suggests to use sudo apt-get update sudo apt-get install libavcodec53 for Ubuntu 12.04 and…
george
  • 141
4
votes
1 answer

Installing Old Package from Old Ubuntu to New version of Ubuntu

I want to install openjfx8 (which is compatible with Java 8) on Ubuntu 19.04. This was available on Ubuntu 18.04, and I had installed as follows: (Refer: How do I get Java FX running with OpenJDK 8 on Ubuntu 18.04.2 LTS? - Stack Overflow) sudo apt…
Porcupine
  • 739
4
votes
2 answers

Openjfx is not installing

I'm using openjdk-8 openjdk version "1.8.0_212" OpenJDK Runtime Environment (build 1.8.0_212-8u212-b03-0ubuntu1.18.04.1-b03) OpenJDK 64-Bit Server VM (build 25.212-b03, mixed mode) and i try to install javafx by: sudo apt-get install…
Doragu
  • 41
3
votes
1 answer

Javafx is not on the default classpath even with Oracle JDK 1.8

I recently installed Oracle JDK 1.8 on my Kubuntu Linux machine following this guide. I did the manual install because I couldn't get the easy one to work. If I've understood correctly, javafx should be included on the default classpath after…
Sifu
  • 33
  • 1
  • 1
  • 4
3
votes
2 answers

Ubuntu 19.10 Eoan won't play sound from my Java programs

After installing Ubuntu 19.10 recently, I've been working on projects that involve playing audio. The file type isn't overly important, wav, mp3, whatever works. However, I've been unable to get Java to play any audio. No errors are thrown, there is…
3
votes
0 answers

Creating a snap for JavaFX application

I'm trying to create a snap for a JavaFX application, but I can't seem to figure out how to structure the yaml file. I've read that I need to use the desktop-launch command, but I also need to call Java's java -jar command. I'm not sure how to put…
Sam
  • 81
3
votes
1 answer

Java 8 and Java 11 on Kubuntu

The frequent updates for Java versions is causing me headaches in my software engineering course. I have some students who are doing their project in Java 11, which is not available on the school's machines. I tried following some of these…
Kyle
  • 131
1
2 3 4