Could you please post the complete robovm call to build and/or launch the iOS javafx app to log warnings with " -rvm:log=warn"?
Am 22.05.2013 um 14:55 schrieb Niklas Therning <nik...@therning.org>: > Tom, could it be due to some class missing? Do you get an exception? If you > launch the app with the -rvm:log=warn option failing Class.forName() calls > will be logged. > > RoboVM strips out classes not being referenced to keep down the size of the > app. The compiler has to be told about classes that get loaded using > reflection. That's what the -roots command line option and the <roots> > section in the robovm.xml file are for. You may have to add a <root> there > for the class(es) containing the effect code. Or you could just add > <root>**.*</root> and RoboVM will compile and link in everything. > > > On Wed, May 22, 2013 at 1:49 PM, Tom Schindl > <tom.schi...@bestsolution.at>wrote: > >> Hi, >> >> I also tried do something like this. I was able to work around the NPE by >> adding a dummy com.sun.javafx.text.**PrismTextLayout to the project. >> >> I also tried to run the vanishing circles demo but that one fails with an >> effect problem. >> >> Tom >> >> >> On 22.05.13 13:15, Tobias Bley wrote: >> >>> Unfortunately because of the missing PrismFontLoader and the empty >>> DummyFontLoader actually you can't use JFX controls like Label or Button >>> because of an NullPointerException. >>> >>> Exception in thread "Thread-5" java.lang.RuntimeException: Exception in >>> Application start method >>> at com.sun.javafx.application.**LauncherImpl.** >>> launchApplication1(**LauncherImpl.java) >>> at com.sun.javafx.application.**LauncherImpl.access$000(** >>> LauncherImpl.java) >>> at com.sun.javafx.application.**LauncherImpl$1.run(** >>> LauncherImpl.java) >>> at java.lang.Thread.run(Thread.**java) >>> Caused by: java.lang.NullPointerException >>> at com.sun.javafx.text.**PrismTextLayout.setContent(** >>> PrismTextLayout.java) >>> at javafx.scene.text.Text.**getTextLayout(Text.java) >>> at javafx.scene.text.Text.**needsFullTextLayout(Text.java) >>> at javafx.scene.text.Text.access$**400(Text.java) >>> at javafx.scene.text.Text$7.**invalidated(Text.java) >>> at javafx.beans.property.**ObjectPropertyBase.**markInvalid(** >>> ObjectPropertyBase.java) >>> at javafx.beans.property.**ObjectPropertyBase.bind(** >>> ObjectPropertyBase.java) >>> at javafx.css.**StyleableObjectProperty.bind(** >>> StyleableObjectProperty.java) >>> at com.sun.javafx.scene.control.**skin.LabeledText.<init>(** >>> LabeledText.java) >>> at com.sun.javafx.scene.control.**skin.LabeledSkinBase.<init>(** >>> LabeledSkinBase.java) >>> at com.sun.javafx.scene.control.**skin.LabelSkin.<init>(** >>> LabelSkin.java) >>> at javafx.scene.control.Label.**createDefaultSkin(Label.java) >>> at javafx.scene.control.Control.**impl_processCSS(Control.java) >>> at javafx.scene.Parent.impl_**processCSS(Parent.java) >>> at javafx.scene.Node.processCSS(**Node.java) >>> at javafx.scene.Scene.doCSSPass(**Scene.java) >>> at javafx.scene.Scene.**preferredSize(Scene.java) >>> at javafx.scene.Scene.impl_**preferredSize(Scene.java) >>> >>> >>> >>> Am 20.05.2013 um 19:04 schrieb Niklas Therning <nik...@therning.org>: >>> >>> Source code and build instructions for the BrickBreaker JavaFX sample on >>>> iOS/RoboVM is now available online [1]. The static libs included in that >>>> download have been compiled from my fork [2] of Danno Ferrin's JDK7 >>>> backport of openjfx [3]. For build instructions please see [4]. >>>> >>>> [1] >>>> http://blog.robovm.org/2013/**05/brickbreaker-javafx-sample-** >>>> on-ios-robovm-source-code-**released.html<http://blog.robovm.org/2013/05/brickbreaker-javafx-sample-on-ios-robovm-source-code-released.html> >>>> [2] >>>> https://bitbucket.org/**ntherning/jfx78<https://bitbucket.org/ntherning/jfx78> >>>> [3] https://bitbucket.org/narya/**jfx78<https://bitbucket.org/narya/jfx78> >>>> [4] >>>> https://gist.github.com/**ntherning/5613607<https://gist.github.com/ntherning/5613607> >>>> >>>> /Niklas >>>> >>>> >>>> On Tue, May 14, 2013 at 9:30 AM, Niklas Therning <nik...@therning.org >>>>> wrote: >>>> >>>> Hi, >>>>> >>>>> I'll clean up the code and post it somewhere later this week. We're not >>>>> using OpenJDK's class libraries. It's Android's. >>>>> >>>>> >>>>> On Mon, May 13, 2013 at 6:38 PM, <steve.x.northo...@oracle.com> wrote: >>>>> >>>>> Niklas!!! >>>>>> >>>>>> This is very cool. Please make your work available as soon as possible >>>>>> so others can try it out. I have played a bit with RoboVM and looked >>>>>> into >>>>>> what would be required to port JavaFX to it but did not get the time >>>>>> to do >>>>>> a deep dive. Are you using the OpenJDK for the class libraries? >>>>>> >>>>>> Steve >>>>>> >>>>>> >>>>>> On 13/05/2013 5:32 AM, Niklas Therning wrote: >>>>>> >>>>>> Hi, >>>>>>> >>>>>>> I've managed to get OpenJFX running on iOS using RoboVM. Please see >>>>>>> the >>>>>>> RoboVM blog [1] for a quick video of it. >>>>>>> >>>>>>> I'd like to say thank you for writing such great code! BrickBreaker >>>>>>> almost >>>>>>> worked out of the box! I had to remove/stub out font related stuff of >>>>>>> course and PlatformLogger had to be copied from OpenJDK. Also had to >>>>>>> fix >>>>>>> a >>>>>>> tiny bug in the native glass code [2] and an NPE in >>>>>>> PlatformUtil.getRTDir() >>>>>>> when PlatformUtil.class isn't available in any jar file [3]. >>>>>>> >>>>>>> Do you have an ETA on the open-sourcing of the font related code? It >>>>>>> would >>>>>>> be a fun challenge to get most of the controls or even the Ensemble >>>>>>> sample >>>>>>> to work but fonts are essential of course. >>>>>>> >>>>>>> [1] >>>>>>> http://blog.robovm.org/2013/****05/javafx-openjfx-on-ios-**<http://blog.robovm.org/2013/**05/javafx-openjfx-on-ios-**> >>>>>>> using-robovm.html<http://blog.**robovm.org/2013/05/javafx-** >>>>>>> openjfx-on-ios-using-robovm.**html<http://blog.robovm.org/2013/05/javafx-openjfx-on-ios-using-robovm.html> >>>>>>>> >>>>>>> [2] >>>>>>> https://javafx-jira.kenai.com/****browse/RT-30327<https://javafx-jira.kenai.com/**browse/RT-30327> >>>>>>> <https://**javafx-jira.kenai.com/browse/**RT-30327<https://javafx-jira.kenai.com/browse/RT-30327> >>>>>>>> >>>>>>> [3] >>>>>>> https://javafx-jira.kenai.com/****browse/RT-30329<https://javafx-jira.kenai.com/**browse/RT-30329> >>>>>>> <https://**javafx-jira.kenai.com/browse/**RT-30329<https://javafx-jira.kenai.com/browse/RT-30329> >>>>>>>> >>>>>>> >>>>>>> Regards, >>>>>>> Niklas Therning >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>> >>> >>