Thanks Eddie. I think this would be good to use in conjunction with a 
check for java in the installer.

Stuart.

Edward Kawas wrote:
> Hello All, if all that you are trying to do is determine whether java is
> installed, would the following work on windows?
>
> At the top of run.bat
>
> @ECHO OFF
>
> :checkJAVA
> java -version /? >NUL 2>&1
> IF ERRORLEVEL 1 GOTO noJava 
> if not errorlevel 1 goto startup
>
> :noJava
> echo Seems like you do not have JAVA installed!
> echo Please go to http://java.com/download to obtain JAVA
> echo Exiting Taverna startup
> pause
> exit /B 1
>
> :startup
> REM Taverna startup script
>
> ... rest of script ...
>
> It seems to work on my machine, but I didn't test it too thoroughly.
>
> Eddie
>
> -----Original Message-----
> From: Stian Soiland-Reyes [mailto:[email protected]] 
> Sent: June-11-09 8:39 AM
> To: List for general discussion and hacking of the Taverna project
> Subject: Re: [Taverna-hackers] [MYGRID] Taverna workshop in MIB on 9th June
> 2009
>
> On Thu, Jun 11, 2009 at 08:50, Stian
> Soiland-Reyes<[email protected]> wrote:
>   
>> On Wed, Jun 10, 2009 at 13:53, Richard Holland<[email protected]>
>>     
> wrote:
>   
>>> There's generic solutions such as Launch4j
>>> http://launch4j.sourceforge.net/ which wrap Java apps into native
>>> binaries for all platforms, including an embedded JRE or the option to
>>> prompt and download one at install time.
>>>       
>> Yes, it's true that launch4j is for all platforms, but the result is a
>> Windows EXE.
>>
>> It is however Windows users that have the biggest issue of not having
>> Java by default.
>>     
>
> I tested it, and it was quite easy to get to work:
>
>  
> http://www.mygrid.org.uk/dev/wiki/display/scrap/2009-06-11+Launch4j+experime
> nt
>
> This even includes an .exe file you could drop into your Taverna 2.1b1
> installation to try for yourself. :-)
>
> I say we try to get this into 2.1b2. If we have time we can get the
> install wizard (like in 2.0) to also add a link to this .exe file to
> the Start menu.. but that's another program to play with. (which I
> don't remember the name of!)
>
>
>   


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
Developers Guide: http://www.mygrid.org.uk/tools/developer-information

Reply via email to