This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JavaFX and the fly likes Building executable JavaFX jar with Ant script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JavaFX
Bookmark "Building executable JavaFX jar with Ant script" Watch "Building executable JavaFX jar with Ant script" New topic
Author

Building executable JavaFX jar with Ant script

Matt Dalen
Greenhorn

Joined: Aug 22, 2012
Posts: 15
    
    1
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

Joined: Aug 22, 2012
Posts: 15
    
    1
I think I figured out a workaround.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Building executable JavaFX jar with Ant script
 
It's not a secret anymore!