×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Ahh, had not thought of that.
What you said on the set command, not my sloppy spelling.
Thanks Chuck.

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of CRPence
Sent: Monday, December 09, 2013 3:20 PM
To: java400-l@xxxxxxxxxxxx
Subject: Re: squirrel not starting after java update

On 09-Dec-2013 13:06 -0800, Gary Thompson wrote:
Don't yet know why, but the batch file seems to mishandle "set
LOCAL_JAVA=%IZPACK_JAVA%\bin\javaw.exe"

I'm guessing the line of code:

if exist "%IZPAK_JAVA%\bin\javaw.exe"

does not work because of double quotes ?

Or perhaps a side effect of the spelling error? That is, %IZPACK_JAVA% <> %IZPAK_JAVA%

Or the opposite problem of what is alluded? That is, the lack of double-quote delimiting on the SET is an issue rather than the existence of the delimiters on the existence test.? Without delimiters, if the path has embedded blanks [e.g. \Program Files\...], then the value set for the one variable LOCAL_JAVA might contain only the characters up to the first blank in the value of the other variable IZPACK_JAVA [e.g.
such that LOCAL_JAVA becomes just \Program and the exists appended with \bin\javaw.exe checks for the non-existent \Program\bin\javaw.exe file?
I have no Win client on which to test. For both consistency and requirements to support a path with blanks, but perhaps the following modifications should be made in the .bat file?:

SET LOCAL_JAVA="%IZPACK_JAVA%\bin\javaw.exe"

IF EXIST "%IZPACK_JAVA%\bin\javaw.exe"


The following [effective; may require reformatting] web search reveals some possible issues [none mentioning IZPAK_JAVA so the above possibly originated as a transcription error into the message] and
resolutions:
https://www.google.com/search?&q="if+exist"+"IZPACK_JAVA";

The following link [from the above search] seems to confirm something similar to my suggestion above.
http://sourceforge.net/p/squirrel-sql/bugs/888/

--
Regards, Chuck
--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.