• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

I just started JavaFX and I when I added my button method, I get a start method error. Anyone help?

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm running JDK 12. I appreciate anyone taking time out of their day to look this over and help me out! Thanks!!

This is my code :


And then this is the error that gets thrown :
 
Ranch Hand
Posts: 387
27
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't used JDK 12.  These kind of module errors don't occur in JDK 8 as that does not have modules, but that is old and outdated so it is better to get the modular system in JDK 12 to work.

Take a look at:
https://stackoverflow.com/questions/54291958/javafx-11-illegalaccesserror-when-creating-label
There is says:
"you need to set the required VM options for your project"

I haven't got a copy of JDK 12 locally to try it at the moment, but you could try giving it a go.
 
Luka Sarich
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

John Damien Smith wrote:I haven't used JDK 12.  These kind of module errors don't occur in JDK 8 as that does not have modules, but that is old and outdated so it is better to get the modular system in JDK 12 to work.

Take a look at:
https://stackoverflow.com/questions/54291958/javafx-11-illegalaccesserror-when-creating-label
There is says:
"you need to set the required VM options for your project"

I haven't got a copy of JDK 12 locally to try it at the moment, but you could try giving it a go.



Thanks so much! I played with the VM settings and got it working.. I've been stuck on this for a couple days now and just now decided to ask on here. i shouldve done it along time ago. Thanks for helping me out!!
 
yeah, but ... what would PIE do? Especially concerning this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!