• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 :
 
Rancher
Posts: 387
30
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!
 
It's hard to fight evil. The little things, like a nice sandwich, really helps. Right tiny ad?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic