Win a copy of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP this week in the Cloud/Virtualization forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

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!!
 
All of the following truths are shameless lies. But what about this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic