Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Editor does not contain main

 
Rigo Gomez
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Eclipse and I am trying to run this :

But a it's stating : Editor does not contain main in the error
trying to figure out if I installed the javaFx correctly in Eclipse
or am I doing something wrong !
 
Stephan van Hulst
Bartender
Pie
Posts: 6503
83
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Rigo, welcome to CodeRanch!

You replied to a different unrelated topic. I put your post in a new topic. I also put code tags around your code so that it's easier to read.

Now, I'm not sure what error you're getting, you might want to copy an paste the exact error message, but I can tell that the structure of your code is wrong. Your braces don't match up nicely, and it appears you have a start() method inside your main() method. I don't think this is as intended.
 
John Damien Smith
Ranch Hand
Posts: 299
14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To understand Stephan van Hulst's comment regarding braces, compare your code to the sample hello world application from Oracle:
https://docs.oracle.com/javase/8/javafx/get-started-tutorial/hello_world.htm

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic