• 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
Posts: 6669
90
  • 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: 325
20
  • 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

 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!