Skip to main content

Error : "Was expecting one of:"

3 replies [Last post]
delfkhyn
Offline
Joined: 2008-01-23

Hi!

First of all, i'm not very good in english but i will do my best for much comprehension.

I'm trying to run the last Jim Weaver's script (http://learnjavafx.typepad.com/weblog/2008/01/creating-a-dial.html) but i have this error :

Error in file:....NetBeansProjects/JavaFXPannelGrid/src/javafxpannelgrid/Main.fx:17: Encountered "var" at line 17, column 3.
Was expecting one of:
"*" ...
"=" ...
"[" ...
"+" ...
"?" ...

The lines are :
var dlg:Dialog
var firstName:String
var lastName:String

Somebody has any idea on this error?

Thank you for your help.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
delfkhyn
Offline
Joined: 2008-01-23

I'm an idiot! You both have reason!

Thanks you for your fasts answers.

alexsch
Offline
Joined: 2007-07-12

Do you use a compiler version of JavaFX Script to run the example?
http://learnjavafx.typepad.com/weblog/2007/11/compiler-cheat.html

rabinovic
Offline
Joined: 2007-12-02

Hi,
this code is the compiler version and not the interpreted version. therefore use the javafx compiler!