akarshan2701 / h2database

Automatically exported from code.google.com/p/h2database
0 stars 0 forks source link

Error in service BAT files (suggested fix included) #154

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I believe files:

http://code.google.com/p/h2database/source/browse/trunk/h2/service/0_run_se
rver_debug.bat
http://code.google.com/p/h2database/source/browse/trunk/h2/service/1_instal
l_service.bat

that contain command (line 4):

copy /y /b ..\bin\h2-*.jar ..\bin\h2.jar

just try to get latest version of h2-*.jar (not concatenate all of them).

So it should look like:

for %i in (..\bin\h2-*.jar) do copy /y /b %i ..\bin\h2.jar

Original issue reported on code.google.com by desummoner on 22 Dec 2009 at 7:40

GoogleCodeExporter commented 8 years ago
Hi,

I would like to keep the batch file as simple as possible.
Why do you have multiple h2-*.jar files in the same directory?
Maybe there is an easy way to fail if there are multiple h2-*.far file around.

Original comment by thomas.t...@gmail.com on 25 Dec 2009 at 4:24

GoogleCodeExporter commented 8 years ago
Not a problem really. The JAR is all we need.
=)

(I've got concatenated JAR file so just looked for cause. Windows installer 
ingnored an 
older version, so there was multiple h2-*.jar files.)

Original comment by desummoner on 25 Dec 2009 at 10:31

GoogleCodeExporter commented 8 years ago
I found a solution. I will fix it in the next release.
The Windows service wrapper will detect if multiple versions of H2 are 
installed.

Original comment by thomas.t...@gmail.com on 30 Jan 2010 at 3:16

GoogleCodeExporter commented 8 years ago
This should be fixed with version 1.2.129.

Original comment by thomas.t...@gmail.com on 20 Feb 2010 at 9:43