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

Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Holger Mappt
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.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Eric Ladner-2
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 <[hidden email]> 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.
>
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Holger Mappt
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;

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Dirk Stöcker
On Mon, 17 Jul 2017, Holger Mappt wrote:

> 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.

Which RPM did you install?

Ciao
--
http://www.dstoecker.eu/ (PGP key available)

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Eric Ladner-2
On Tue, Jul 18, 2017 at 3:47 AM Dirk Stöcker <[hidden email]>
wrote:

> On Mon, 17 Jul 2017, Holger Mappt wrote:
>
> > 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.
>
> Which RPM did you install?
>
>
Dirk,

According to this
https://ask.fedoraproject.org/en/question/93407/there-is-no-javafx-packages-in-openjdk-180-fedora-gnulinux/
 , there is no javafx RPM for Red Hat based systems.

The only option appears to be:  get the official Oracle 1.8 JDK.

That post is a little old, though, but I couldn't find anything to the
contrary.

 Eric
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Vincent Privat-2
See https://josm.openstreetmap.de/ticket/2089#comment:16

Fedora just added support for openjfx, 2.5 years after Debian.
For OpenSUSE, no fresh news apart Java developers complaining about lack of
support.


2017-07-18 13:49 GMT+02:00 Eric Ladner <[hidden email]>:

> On Tue, Jul 18, 2017 at 3:47 AM Dirk Stöcker <[hidden email]>
> wrote:
>
> > On Mon, 17 Jul 2017, Holger Mappt wrote:
> >
> > > 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.
> >
> > Which RPM did you install?
> >
> >
> Dirk,
>
> According to this
> https://ask.fedoraproject.org/en/question/93407/there-is-no-
> javafx-packages-in-openjdk-180-fedora-gnulinux/
>  , there is no javafx RPM for Red Hat based systems.
>
> The only option appears to be:  get the official Oracle 1.8 JDK.
>
> That post is a little old, though, but I couldn't find anything to the
> contrary.
>
>  Eric
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Dirk Stöcker
On Tue, 18 Jul 2017, Vincent Privat wrote:

> See https://josm.openstreetmap.de/ticket/2089#comment:16
>
> Fedora just added support for openjfx, 2.5 years after Debian.
> For OpenSUSE, no fresh news apart Java developers complaining about lack of
> support.

This is again such a "packinging friendly" software which has unclear
dependencies and assumes that a build server has internet access and
instead of simply checking dependencies properly it tries to download them
in the build process (typical brainfucked maven behaviour).

Some people are working on a package, but yet there is nothing really
working. A properly working build setup would be fine.

Ciao
--
http://www.dstoecker.eu/ (PGP key available)

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Sebastiaan Couwenberg
On 2017-07-19 09:08, Dirk Stöcker wrote:

> On Tue, 18 Jul 2017, Vincent Privat wrote:
>
>> See https://josm.openstreetmap.de/ticket/2089#comment:16
>>
>> Fedora just added support for openjfx, 2.5 years after Debian.
>> For OpenSUSE, no fresh news apart Java developers complaining about
>> lack of
>> support.
>
> This is again such a "packinging friendly" software which has unclear
> dependencies and assumes that a build server has internet access and
> instead of simply checking dependencies properly it tries to download
> them in the build process (typical brainfucked maven behaviour).
>
> Some people are working on a package, but yet there is nothing really
> working. A properly working build setup would be fine.

The Debian build daemons and pbuilder/cowbuilder chroots also don't have
network access, you can possibly find inspiration in their packaging do
deal with the no-network situation.

It generally comes down to having the dependencies packaged as well and
installing those in the build environment.

Kind Regards,

Bas

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Holger Mappt
In reply to this post by Dirk Stöcker
On 2017-07-18 at 10:29 +0200 Dirk Stöcker wrote:
> On Mon, 17 Jul 2017, Holger Mappt wrote:
>
>> 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.
>
> Which RPM did you install?
>
> Ciao

Hi Dirk,

I installed this:
http://download.opensuse.org/repositories/home:/Herbster0815/openSUSE_Leap_42.2/x86_64/java-openjfx-8u131~b11-7.1.x86_64.rpm 
(https://software.opensuse.org/package/java-openjfx?search_term=openjfx)

Holger


Loading...