Skip to main content

Error running TetrisJFX on Mac when starting with JNLP

1 reply [Last post]
Anonymous

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Christopher Oliver

Scenario has a regression with respect to running on Java 1.5. It was
fixed recently IIRC, but possibly hasn't made it into openjfx
repository yet.

Chris

On Apr 29, 2008, at 1:34 PM, James L. Weaver wrote:

> Can Mac or Ubuntu users try something for me? Please see the
> following blog post:
> http://learnjavafx.typepad.com/weblog/2008/04/game-over-impro.html
>
> And then try that application using the following JNLP link:
> http://jmentor.com/JavaFX/TetrisJFX_WS/TetrisJFX.jnlp
>
> I compiled with -target 1.5 and it runs on Windows machines but not
> the Macs or Ubuntu machines (running JRE 1.5) in our office.
>
> I'm using the openjfx-compiler-javaone build 7, and here is the
> stacktrace:
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun
> .reflect
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun
> .reflect
> .DelegatingMethodAccessorImpl
> .invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at com.sun.javaws.Launcher.executeApplication(Launcher.java:1171)
> at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1118)
> at com.sun.javaws.Launcher.continueLaunch(Launcher.java:961)
> at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:515)
> at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:218)
> at com.sun.javaws.Launcher.run(Launcher.java:165)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NoSuchFieldError: IDENTITY
> at com.sun.scenario.scenegraph.SGText.setFont(SGText.java:286)
> at
> com.sun.scenario.scenegraph.JSGPanel$FPSData.(JSGPanel.java:762)
> at com.sun.scenario.scenegraph.JSGPanel.setScene(JSGPanel.java:128)
> at javafx.ui.Canvas.createComponent$impl(Canvas.fx:363)
> at javafx.ui.Canvas.createComponent(Canvas.fx:51)
> at javafx.ui.Widget.getComponent$impl(Widget.fx:593)
> at javafx.ui.Canvas.getComponent(Canvas.fx:51)
> at javafx.ui.StackPanel.createComponent$impl(StackPanel.fx:61)
> at javafx.ui.StackPanel.createComponent(StackPanel.fx:34)
> at javafx.ui.Widget.getComponent$impl(Widget.fx:593)
> at javafx.ui.StackPanel.getComponent(StackPanel.fx:34)
> at javafx.ui.Frame.setContentPane$impl(Frame.fx:315)
> at javafx.ui.Frame.setContentPane(Frame.fx:46)
> at javafx.ui.Frame$4.onChange(Frame.fx:79)
> at javafx.ui.Frame$4.onChange(Frame.fx:78)
> at
> com
> .sun
> .javafx
> .runtime.location.ObjectVariable.notifyListeners(ObjectVariable.java:
> 124)
> at
> com
> .sun
> .javafx
> .runtime.location.ObjectVariable.replaceValue(ObjectVariable.java:79)
> at
> com
> .sun.javafx.runtime.location.ObjectVariable.set(ObjectVariable.java:
> 89)
> at
> com.sun.javafx.runtime.location.AbstractVariable
> $4.apply(AbstractVariable.java:98)
> at
> com
> .sun
> .javafx
> .runtime.location.AbstractVariable.needDefault(AbstractVariable.java:
> 116)
> at javafx.ui.Frame.initialize$(Frame.fx:78)
> at tetris_ui.TetrisMain.javafx$run$(TetrisMain.fx:14)
>
> Here is the JNLP file:
>
>
>
>
> TetrisJFX
> JMentor, Inc.
> TetrisJFX
> TetrisJFX
>
>

>
>
>
>
>
>

>
>
>
>
>

>
>
>
> Anybody have ideas on what the problem could be?
>
>
> Thanks,
> Jim Weaver
> "Helping you become a JavaFXpert" weblog:
> http://JavaFXpert.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@openjfx-compiler.dev.java.net
> For additional commands, e-mail: dev-help@openjfx-
> compiler.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@scenegraph.dev.java.net
For additional commands, e-mail: dev-help@scenegraph.dev.java.net