Jørgen,
Unfortunately, this change ( %CLASSPATH% -> "%CLASSPATH%" ) breaks
anyone with correctly quoted paths in their CLASSPATH environment
variable (see http://sourceforge.net/tracker/index.php?func=detail&aid=2964850&group_id=28383&atid=393414).
My testing revealed that quoting and already quoted path effectively
removes the original quotes around the path with spaces. It seems to
me that the best approach would be to split the CLASSPATH variable
value into paths, and test each path for spaces to determine whether
or not it needs quoting, thereby fixing the CLASSPATH variable as it
is defined to be something acceptable to the JVM. Writing batch files
is not something I do all the time, so I've never encountered the
syntax that would accomplish this task. If someone would like to
propose a patch that does the above (using only commands that can be
found on any clean install of Windows XP SP2/Vista/7), I would be more
than happy to test it out and commit and prepare a new release if it
works properly. For now, until we have a bullet-proof way of
"fixing" the quotes on the CLASSPATH, I will be removing the reference
to it from the batch file that launches SQuirreL on Windows.
Rob
On Tue, Apr 20, 2010 at 6:29 AM, Jørgen Nørgaard <jn...@an...> wrote:
> Hi,
>
> If you have spaces in path names in your java class path this may help you:
>
>
> Change line 37 (probably) to
> SET SQUIRREL_CP=%TMP_CP%;"%CLASSPATH%"
> from
> SET SQUIRREL_CP=%TMP_CP%;%CLASSPATH%
>
>
> The bat-file on windows have changed between quoting and not quoting the
> CLASSPATH environment variable.
>
>
>> Hi Christian,
>>
>> adding a "@rem" in front of the final "exit"-line of the
>> "squirrel-sql.bat" should keep the cmd-shell open and so you should be
>> able to read the messages.
>> What kind of databases do you want to connect to and which JDBC-drivers
>> do you use? I haven't seen the effect, that connecting to an alias will
>> fail
>> after "Test" of the alias has worked successfully. Do you get an error
>> message when you try to connect to one of the aliases? Do you use the
>> "Auto Logon"
>> option of the alias?
>>
>> Hope that helps
>>
>> Cheers
>>
>> Andreas
>>
>> Christian Hausknecht schrieb:
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> Hello,
>>>
>>> I just downloaded SQuirreL 3.1 and installed it. I have trouble to start
>>> it via the delivered BAT file. I read some other threads and uncommented
>>> the default start-Method and activated the one for "older" OS.
>>>
>>> The problem is, that the CMD-Shell-Window allways closes after printing
>>> out messages. So I am not even able to read the error message. Even if I
>>> start a fresh CMD-Shell, navigate to the install folder and start the
>>> BAT-file manually.
>>>
>>> Would be great if somebody can help me with that.
>>>
>>> The jar starts well btw. But I cannot connect to any Database, even if
>>> Squirrel claims that everythong is ok when testing an alias.
>>>
>>> Greets,
>>> Chris
>>> -----BEGIN PGP SIGNATURE-----
>>> Version: GnuPG v1.4.10 (MingW32)
>>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>>
>>> iEYEARECAAYFAkvMNiMACgkQx1N5zUp+BXKkCgCdG+rc0zGNjVnfZHr08QSxrERO
>>> 7SoAn0SbTjkcPBGyaipcGc4B+i3oEEOD
>>> =20+B
>>> -----END PGP SIGNATURE-----
>>>
>>> ------------------------------------------------------------------------------
>>> Download Intel® Parallel Studio Eval
>>> Try the new software tools for yourself. Speed compiling, find bugs
>>> proactively, and fine-tune applications for parallel performance.
>>> See why Intel Parallel Studio got high marks during beta.
>>> http://p.sf.net/sfu/intel-sw-dev
>>> _______________________________________________
>>> Squirrel-sql-users mailing list
>>> Squ...@li...
>>> https://lists.sourceforge.net/lists/listinfo/squirrel-sql-users
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Download Intel® Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> _______________________________________________
>> Squirrel-sql-users mailing list
>> Squ...@li...
>> https://lists.sourceforge.net/lists/listinfo/squirrel-sql-users
>>
>
>
> --
> jørgen nørgaard
>
> |\ _,,,---,,_
> /,`.-'`' -. ;-;;,_
> |,4- ) )-,_. ,\ ( `'-'
> '---''(_/--' `-'\_)
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Squirrel-sql-users mailing list
> Squ...@li...
> https://lists.sourceforge.net/lists/listinfo/squirrel-sql-users
>
|