aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Swing application don't run using apache-ANT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Swing application don Watch "Swing application don New topic
Author

Swing application don't run using apache-ANT

Swaroop Kunduru
Ranch Hand

Joined: May 22, 2006
Posts: 33
The application compiles well but when I try to run the application nothing show-up? While running externally it works fine. How to make it to run through ant? Please see below my ant script run target.


<target name="run">
<property name="myclasspath" refid="project.classpath"/>
<echo message="CLASSSPATH = ${myclasspath}" />
<java classname="com.swaroop.test.SwingDemo">

<classpath>
<pathelement path="${myclasspath}"/>
</classpath>
</java>
</target>


The below command works fine.

java -classpath C:/Users/........./SwingPro/dist/lib/MyProject-20110113.jar com.swaroop.test.SwingDemo

Regards,

Swaroop Kunduru.



Regards,
Swaroop Kunduru
Vladimir Loginov
Greenhorn

Joined: Jan 26, 2011
Posts: 2
Just add param fork="true" to the <java> tag.
 
 
subject: Swing application don't run using apache-ANT