huntc
|
Posted: February 12, 2009 06:55 by huntc
|
|
Hi there, I'm getting the following error: incompatible types found : Integer required: com.sun.javafx.runtime.location.FloatVariable test/src/com/classactionpl/javafx/test Main.fx line 9 JavaFX Problem on the following code: javafx.stage.Stage { title : "Hello World" scene : javafx.scene.Scene { width: 200 // Line 9 height: 200 content: [ ] } } Java 6 is my default VM and JRE 1.6 is selected for my project. I'm running on Mac OS X Leopard. Any ideas? Kind regards, Christopher |
Incompatible types found: integer required
23 topics, 92 posts
» Share this
Replies: 8 - Last Post: May 30, 2009 07:18
by: boneless1213
by: boneless1213
showing 1 - 9 of 9
huntc
|
Posted: February 12, 2009 21:29 by huntc
|
|
Hi again, Any feedback at all on this? This is my first experience of JavaFX and while I appreciate that the Eclipse development is in its early stages, I would like to continue using just the one IDE... Thanks for your attention. Kind regards, Christopher P.S. I'm also using Eclipse Ganymede. I think I'm pretty much using the latest of everything. |
usulix
|
Posted: March 29, 2009 17:17 by usulix
|
|
I just started looking at javafx, so I was pretty discouraged by this problem. I also tracked to the bug report number 206 and was further discouraged by the rating of the bug as Importance: P5 minor This seems like a pretty major issue to me considering that I had to downgrade to javafxSDK 1.0 as suggested to continue my studies and evaluation of javafx. Without downgrading, the project would not run. As I was reading throught the tutorial, I did run across this little gem, though, at http://java.sun.com/javafx/1/tutorials/core/dataTypes/ which says "Note: As of SDK 1.1, the language also contains numeric types that align with those found in the Java programming language. The full list of numeric types is therefore: Byte, Short, Number, Integer, Long, Float, Double, and Character. However, the advice given above still holds true: most programmers will only need Integer (or Number) for the scripts that they write. If you are coming to this language from a Java programming language background and have a task that absolutely requires one of the other types, just know that these additional types are now available to your scripts." As the error referenced com.sun.javafx.runtime.location.FloatVariable I am making the hasty assumption that this data-Types change is the source of the error. I'm not able to progress in my troubleshooting any further, but maybe this will help someone understand what might be going wrong. BTW, thanks for an otherwise great plugin...... Best, G. |
nik.silver
|
Posted: May 05, 2009 22:14 by nik.silver
|
|
I found the solution to this problem is to build the plugins from the original sources and use the result of that. Instructions for this are here: http://kenai.com/projects/eplugin/pages/BuildFromSources Of course, I can only confirm this for me, not for anyone else, and I've only spent about 5 mins with the results. But so far it looks good. I can hazard a guess at what caused this problem: that the plugin was built with JavaFX 1.0.x embedded, and those of us with JavaFX 1.1.x get compatibility errors; recompiling from sources ensures your new plugin in built with your current JavaFX SDK. Thanks to all those in the thread above -- your ideas spurred me on to find this. |
Claudio.cads
|
Posted: May 25, 2009 23:24 by Claudio.cads
|
|
Hi nik.silver. Did You check out and build the trunk ? Best regards, Cláudio. |
boneless1213
|
Posted: May 30, 2009 07:18 by boneless1213
|
| Couldn't we put the results of this build somewhere so everyone doesn't have to install 2 more things and dl 150 megs to get this working?? |
showing 1 - 9 of 9
Replies: 8 - Last Post: May 30, 2009 07:18
by: boneless1213
by: boneless1213








