Compile problem: package com.sun.javafx.application does not exist
Eric Ladner
eric.ladner at gmail.com
Mon Jul 17 02:00:51 UTC 2017
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 <holgerosm at gmx.net> 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
>
> init-properties:
>
> init:
> [mkdir] Created dir: /home/josm/core/build
> [mkdir] Created dir: /home/josm/core/dist
>
> javacc:
> [mkdir] Created dir:
> /home/josm/core/src/org/openstreetmap/josm/gui/mappaint/mapcss/parsergen
> [java] Java Compiler Compiler Version 7.0.2 (Parser Generator)
> [java] (type "javacc" with no arguments for help)
> [java] Reading from file
>
> /home/josm/core/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParser.jj
> . . .
> [java] Warning: Line 4, Column 3: Command line setting of
> "OUTPUT_DIRECTORY" modifies option value in file.
> [java] Warning: Line 169, Column 5: Non-ASCII characters used in
> regular expression.
> [java] Please make sure you use the correct Reader when you create
> the parser, one that can handle your character set.
> [java] File "TokenMgrError.java" does not exist. Will create one.
> [java] File "ParseException.java" does not exist. Will create one.
> [java] File "Token.java" does not exist. Will create one.
> [java] File "SimpleCharStream.java" does not exist. Will create one.
> [java] Parser generated with 0 errors and 2 warnings.
>
> compile:
> [javac] Compiling 377 source files to /home/josm/core/build
> [javac] Note:
> /home/josm/core/src/oauth/signpost/AbstractOAuthProvider.java uses or
> overrides a deprecated API.
> [javac] Note: Recompile with -Xlint:deprecation for details.
> [javac] Note: Some input files use unchecked or unsafe operations.
> [javac] Note: Recompile with -Xlint:unchecked for details.
> [javac] Compiling 54 source files to /home/josm/core/build
> [javac] Compiling 1509 source files to /home/josm/core/build
> [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;
> [javac] ^
> [javac]
>
> /home/josm/core/src/org/openstreetmap/josm/io/audio/JavaFxMediaPlayer.java:17:
> error: package javafx.scene.media does not exist
> [javac] import javafx.scene.media.Media;
> [javac] ^
> [javac]
>
> /home/josm/core/src/org/openstreetmap/josm/io/audio/JavaFxMediaPlayer.java:18:
> error: package javafx.scene.media does not exist
> [javac] import javafx.scene.media.MediaException;
> [javac] ^
> [javac]
>
> /home/josm/core/src/org/openstreetmap/josm/io/audio/JavaFxMediaPlayer.java:19:
> error: package javafx.scene.media does not exist
> [javac] import javafx.scene.media.MediaPlayer;
> [javac] ^
> [javac]
>
> /home/josm/core/src/org/openstreetmap/josm/io/audio/JavaFxMediaPlayer.java:20:
> error: package javafx.scene.media.MediaPlayer does not exist
> [javac] import javafx.scene.media.MediaPlayer.Status;
> [javac] ^
> [javac]
>
> /home/josm/core/src/org/openstreetmap/josm/io/audio/JavaFxMediaPlayer.java:21:
> error: package javafx.util does not exist
> [javac] import javafx.util.Duration;
> [javac] ^
> [javac]
>
> /home/josm/core/src/org/openstreetmap/josm/io/audio/JavaFxMediaPlayer.java:37:
> error: cannot find symbol
> [javac] private MediaPlayer mediaPlayer;
> [javac] ^
> [javac] symbol: class MediaPlayer
> [javac] location: class JavaFxMediaPlayer
> [javac] 7 errors
>
> BUILD FAILED
> /home/josm/core/build.xml:303: Compile failed; see the compiler error
> output for details.
>
>
More information about the josm-dev
mailing list