Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

have javafx app working fine in eclipse but standalone always crashes

 
craig peddie
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have built a javafx app that consists of two screens, one for information about the speaker, and then the second prompts the user to record phrases. Everything works fine when I run it in eclipse, but when I try and run it as a jar or standalone nothing works. Comes up fine with the initial screen, all the validity checks work fine on the fields, but when I press the button that should take to the next screen it either bombs on a null pointer trying to load the fxml for the next screen (running generated jar directly) or just doesn't do anything (if running from dmg). All the ant build seems to be set up correctlywith the files and resources, but it seems that the jar output is not include all the resources. Is there a simple step I'm missing to create and output jar correctly for JavarFX?
 
Maneesh Godbole
Saloon Keeper
Posts: 11331
16
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not have any hands on experience with JavaFx. However, the recommended way to debug a jar is to launch it from the console using the 'java -jar JarFileName.jar' command. That way you can monitor the stack trace on the console. Have you tried doing that?
I will also add this question to the JavaFx forums for you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic