This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Building executable JavaFX jar with Ant script

 
Matt Dalen
Greenhorn
Posts: 16
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, all,

I'm currently writing a JavaFX program on Eclipse. I have the program written, and it's running properly in Eclipse, but I'm having trouble creating the Ant script to build it. I'm using a couple of external jars (xstream, log4j), and when I run the jar, it throws exceptions, saying it can't find classes that should be in the external jars.

I've tried including the jars in fx:resources, as so, but it doesn't seem to work:



This is my fx:jar task:


Does anyone have any suggestions?
 
Matt Dalen
Greenhorn
Posts: 16
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I figured out a workaround.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic