This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Location of the JavaFX runtime library


The "--with-javafx" option doesn't seem to work:

Making all in gnu/kawa/javafx
java -classpath "../../..:./../../..:$CLASSPATH" kawa.repl -d ../../.. -P `echo gnu-kawa-javafx|sed -e s/-/./g`. --module-static-run  -C GroupObjectBuilder.scm MakeScene.scm defs.scm
(compiling GroupObjectBuilder.scm to gnu.kawa.javafx.GroupObjectBuilder)
(compiling MakeScene.scm to gnu.kawa.javafx.MakeScene)
MakeScene.scm:11:18: unknown type name 'javafx.scene.Camera'
MakeScene.scm:13:18: unknown type name 'javafx.scene.Cursor'
MakeScene.scm:14:27: unknown type name 'javafx.event.EventDispatcher'
MakeScene.scm:15:16: unknown type name 'javafx.scene.paint.Paint'
MakeScene.scm:18:16: unknown type name 'javafx.scene.Parent'
MakeScene.scm:28:12: unknown type name 'javafx.scene.Node'
MakeScene.scm:5:31: unknown type name 'javafx.scene.SceneBuilder'
MakeScene.scm:6:29: unknown type name 'javafx.scene.Group'
MakeScene.scm:7:28: unknown type name 'javafx.scene.Parent'
make[1]: *** [scm-classes.stamp] Error 255
make: *** [all-recursive] Error 1

This is due to the fact that the jfxrt.jar is not present in the default classpath of the JDK (contrary to what the download page/documentation claims):

$ javap javafx.scene.Node
Error:  class not found: javafx.scene.Node

The "--with-javafx=/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/jfxrt.jar" option does work:

Making all in gnu/kawa/javafx
java -classpath "../../..:./../../..:/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/jfxrt.jar:$CLASSPATH" kawa.repl -d ../../.. -P `echo gnu-kawa-javafx|sed -e s/-/./g`. --module-static-run  -C GroupObjectBuilder.scm MakeScene.scm defs.scm
(compiling GroupObjectBuilder.scm to gnu.kawa.javafx.GroupObjectBuilder)
(compiling MakeScene.scm to gnu.kawa.javafx.MakeScene)
(compiling defs.scm to gnu.kawa.javafx.defs)
echo timestamp > scm-classes.stamp
echo timestamp > ../../../kawa-jar.stamp

My environment here is a stock Mac OS X Lion with Oracle JDK 7u4:

$ uname -a
Darwin Weiqis-Mac-mini.local 11.4.0 Darwin Kernel Version 11.4.0: Mon Apr  9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64
$ java -version
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b21)
Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)

--
Weiqi

On May 31, 2012, at 1:43 AM, Per Bothner wrote:

> Could you try the attached patch?
> Preferably two ways:
> (1) plain --with-javafx with no jar-path
> (2) --with-java=PATH/jfxrt.jar
> 
> If someone has downloaded 7u4 on Windows, is building
> on cywgin with configure+make, and would
> test the same two ways, that would also be appreciated.
> 
> I may try tweaking the Ant build.xml later.
> -- 
> 	--Per Bothner
> per@bothner.com   http://per.bothner.com/
> <conf-jfx.patch>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]