ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Gersmann" <lars.gersm...@roxes.com>
Subject AW: ROXES ANT TASK - Jstub console problem -one more
Date Wed, 10 Sep 2003 09:50:24 GMT
jan's suggestion is true.

if you start eclipse using the command line
(javaw -classpath .;startup.jar org.eclipse.core.launcher.Main)
the eclipse startup splash does also not appear.

for my very own application i would prefer to code the splash inside
my java app instead of configuring a native installer.

but if you really want to do stuff like this by the installer
there are a some open source exe generators for windows
(http://jsmooth.sourceforge.net/ for example)
at the internet (but without ant integration :-).

regards,

lars

-----Ursprüngliche Nachricht-----
Von: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
Gesendet: Mittwoch, 10. September 2003 11:26
An: user@ant.apache.org
Betreff: RE: ROXES ANT TASK - Jstub console problem -one more


I don´t think that this in a <jstub/> specific stuff.
Does the image appear when you start eclipse via command line?


Jan


> -----Original Message-----
> From: Nagarajan Murugesan [mailto:NMURUGESAN@Selectica.com]
> Sent: Wednesday, September 10, 2003 11:11 AM
> To: Ant Users List
> Subject: RE: ROXES ANT TASK - Jstub console problem -one more
>
>
> Hi Lars,
>
> I have one more question for you.
> THis is really working fine. But after clicking that
> my application takes some more time to lauch, I want
> a image to be disaplayed between the time duration.
>
> is it possible?
>
> Thanks,
> Nagarajan
>
> -----Original Message-----
> From: Lars Gersmann [mailto:lars.gersmann@roxes.com]
> Sent: Wednesday, September 10, 2003 2:17 PM
> To: Ant Users List
> Subject: AW: ROXES ANT TASK - Jstub console problem
>
>
> nagarajan,
>
> forget everything i wrote (i was a little bit confused) !
>
> at first your commandline was correct (i had already opened
> my eclipse which
> results in nothing).
>
> at second the thing about the zlib stuff matched the sfx task
> but NOT the
> jstub task (my fault).
>
> the following script produces correctly what you want:
>
> <project name="ecl" basedir=".">
> 	<taskdef classpath="roxes-ant-tasks-1.0.jar"
> resource="com/roxes/tools/ant/taskdefs.properties"/>
>
> 	<target name="main">
> 		<jstub
> 			archive="startup.jar"
> 			mode="win32"
> 			execute="start /B javaw -classpath .;startup.jar
> org.eclipse.core.launcher.Main"
> 			output="ecl.exe"
> 		/>
> 	</target>
> </project>
>
> i located the file and the roxes ant task jar in the eclipse
> root and the
> ecl.exe opened eclipse without
> opening a console.
>
> sorry for my confusing answer(s) before.
>
> regards,
>
> lars
>
>
> -----Ursprüngliche Nachricht-----
> Von: Lars Gersmann [mailto:lars.gersmann@roxes.com]
> Gesendet: Mittwoch, 10. September 2003 10:06
> An: Ant Users List
> Betreff: AW: ROXES ANT TASK - Jstub console problem
>
>
> hi nagarajan,
>
> i have tried your script by myself (i'am 'eclipsed' too :-).
> same result.
>
> afterwards i tried the following on the commandline:
>
> C:\java\eclipse-2.1>java -classpath .;startup.jar
> org.eclipse.core.launcher.Main
>
> and the result was the same ! in other words the jstub task works like
> expected,
> but your execution command "java -classpath .;startup.jar
> org.eclipse.core.launcher.Main"
> seems not to be perfect to start eclipse.
>
> try it by yourself.
>
> regards,
>
> lars
>
> -----Ursprüngliche Nachricht-----
> Von: Nagarajan Murugesan [mailto:NMURUGESAN@Selectica.com]
> Gesendet: Mittwoch, 10. September 2003 09:26
> An: Ant Users List
> Betreff: RE: ROXES ANT TASK - Jstub console problem
>
>
> Hi Lars,
>
> When I tried with the following script
> <jstub
> archive="D:\eclipse\startup.jar"
> mode="win32"
> execute="javaw -classpath .;ecl.exe org.eclipse.core.launcher.Main"
> output="D:\eclipse\ecl.exe"
> />
>
> it creates a exe when you click that it try to open a console and
> disappears. it is not launching the application also. how to execute
> without giving startup.jar
>
> if I tries with
> <jstub
> archive="D:\eclipse\startup.jar"
> mode="win32"
> execute="cmd /B javaw -classpath .;ecl.exe
> org.eclipse.core.launcher.Main"
> output="D:\eclipse\ecl.exe"
> />
>
> it opens a command window D:/>eclipse> and waits there it
> doesn't lauch the
> application.
>
> whats the problem.
> -----Original Message-----
> From: Lars Gersmann [mailto:lars.gersmann@roxes.com]
> Sent: Wednesday, September 10, 2003 12:52 PM
> To: user@ant.apache.org
> Subject: RE: ROXES ANT TASK - Jstub console problem
>
>
> 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
>
>
> ---------------------------------------------------------------------
> 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
>


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


Mime
View raw message