• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

start app in a new console window

 
Neeraj Dheer
Ranch Hand
Posts: 225
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an ant build script that compiles all the classes, makes a jar file and launches a Java Swing application using the 'java' action. The problem is that after the application launches, that console window is 'locked' by ant and the build script does not end until i end the application.

Is there any way in which i can start the app in a new window or in the background like 'javaw' and free up the current console window.
Posted is my build script.

tried posting my build script...but keep getting an error...
[ August 17, 2005: Message edited by: Bear Bibeault ]
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at the spawn and fork attributes of the <java /> task. You should find your answer there.
 
Neeraj Dheer
Ranch Hand
Posts: 225
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Paul!!

had fork = true, but did not have spawn there.
Put spawn in and it works now!!!

Thanks once again!!!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic