ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Gersmann" <lars.gersm...@roxes.com>
Subject RE: ROXES ANT TASK - Jstub console problem
Date Wed, 10 Sep 2003 07:21:54 GMT
hello nagarajan,

write "cmd /B" before your real start script:

"cmd /B javaw -classpath .;startup.jar org.eclipse.core.launcher.Main"

oh and i have seen that you use "startup.jar" in the command string. you
don't need this because the archive is already added to the ecl.exe (i.e.
self contained). you can change
the commandline to

"cmd /B javaw -classpath .;ecl.exe org.eclipse.core.launcher.Main"

because of a trick based on the zlib library (which can handle archives with
unknown headers like an exe containing an archive :-). read the docs for
details.

regards,

lars

=== original message below ===

Hai lars,

Thanks for ur response.
I have changed the javaw in the script
<jstub
archive="D:\eclipse\startup.jar"
mode="win32"
execute="javaw -classpath .;startup.jar org.eclipse.core.launcher.Main"
output="D:\eclipse\ecl.exe"
/>

but still it opens a command window and launches the application. It can
be closable after launching the application.

Where should I put cmd /B in the script


-----Original Message-----
From: Lars Gersmann [mailto:lars.gersmann@roxes.com]
Sent: Wednesday, September 10, 2003 12:26 PM
To: user@ant.apache.org
Subject: RE: ROXES ANT TASK - Jstub console problem


hello nagarajan,

the exe created by ROXES jstub task doesnt open the console - its
your execute command "java -classpath .;startup.jar
org.eclipse.core.launcher.Main".

To solve this problem (which is only java windows related):
1. use javaw (-> windowless) instead of java to prevent opening a console
window.
2. start execute string with "cmd /B" respective "command /B" (win95/98)

regards,

lars

=== original message below ===

Hai All,

I am using ROXES ANT task to create native exe to
execute jar files.

I want to create exe without console. I have written
script
<jstub
archive="D:\eclipse\startup.jar"
mode="win32"
execute="java -classpath .;startup.jar org.eclipse.core.launcher.Main"
output="D:\eclipse\ecl.exe"
/>

after that if i execute the ecl.exe file it opens a command window
and launches the application. after launching the application i can
able to close the command window.

What i need is the console should not appear or else it should closed
automatically after tha application is launched.

Thanks,
Nagarajan M.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message