Compile problem: package com.sun.javafx.application does not exist

Holger Mappt holgerosm at gmx.net
Mon Jul 17 21:08:47 UTC 2017


Hi Eric,

Thank you for the package name. For openSUSE it is java-openjfx. I was 
searching for javafx before, but that results in netbeans-javafx, which 
is not the right thing. I'm able to compile now.

Thanks,
Holger


On 2017-07-17 at 04:00 +0200 Eric Ladner wrote:
> OpenJDK likely doesn't include JavaFX.  It would have to be installed 
> separately.   e.g. "sudo apt install openjfx" on Debian based systems.
> 
> On Sun, Jul 16, 2017 at 11:02 AM Holger Mappt wrote:
> 
>     Hi,
> 
>     I guess something is missing in my Java installation, who can point me
>     into the right direction? javac is 1.8.0_131 (OpenJDK), Apache Ant(TM)
>     version 1.9.4.
> 
>     Thanks,
>     Holger
> 
>       > cd /home/josm/core && ant
>     Buildfile: /home/josm/core/build.xml
> 
>           [javac]
>     /home/josm/core/src/org/openstreetmap/josm/io/audio/JavaFxMediaPlayer.java:15:
>     error: package com.sun.javafx.application does not exist
>           [javac] import com.sun.javafx.application.PlatformImpl;



More information about the josm-dev mailing list