• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

SpringBoot using JavaFX: Location is not set error

 
Rancher
Posts: 1171
18
IntelliJ IDE Hibernate Firefox Browser MySQL Database Spring Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I know this question is asked for a 1000 times, but non of the possible answers is the solution for me. I try to build a Spring Bootapp that uses javaFX. Somehow he can't find my sample.fxml which is located in resources/fxml/. I already tried to clean my maven project and rebuild it, my sample.fxml should work(I started out with a normal javaFX project and everything was working), I also think my file is located at the rightplace... Any idea's?

This question is allready asked on stackoverflow, but as usual it got lost in all the other posts before I got a answer(why do I even bother)
post on stackoverflow

My Main.class:


My Stacktrace:

 
Daniel Demesmaecker
Rancher
Posts: 1171
18
IntelliJ IDE Hibernate Firefox Browser MySQL Database Spring Tomcat Server Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Fixed it myself:

 
Sheriff
Posts: 26943
83
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A common problem which people encounter while using the getResource() method, but thanks for posting your answer. Always nice to have more answers here!
 
reply
    Bookmark Topic Watch Topic
  • New Topic