• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Editor does not contain main

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 !
 
Saloon Keeper
Posts: 15254
349
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 387
30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
All of the following truths are shameless lies. But what about this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic