Saturday, July 12, 2008

Ant java task to start application

http://www.velocityreviews.com/forums/t131651-ant-java-task-to-start-application.html
I can't help you get the debugger to work when you're launching with Ant, but there are a number of ways to work around the command line problem.
One is to put all of the jars you're using into a single directory, and make that the extension directory like this:

java -Djava.ext.dirs=C:/myjardir -classpath C:/myclasses MyAppClassBe

careful though, only files with names ending in .jar will be foundin that directory, not .zip.

Rename *.zip to *.jar and they'll be found.

Another way would be to have an empty jar file in the classpath, andthe Class-Path header of its manifest file would reference all of the other jars you need, so you don't need to include them in the classpath.
See:http://java.sun.com/j2se/1.4.2/docs/...ons/index.html for more info.

Sphere: Related Content

0 comments: