Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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: 13870
314
  • 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

 
First, you drop a couch from the plane, THEN you surf it. Here, take this tiny ad with you:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic