× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



See if %LOCAL_JAVA% and %SQUIRREL_SQL_HOME% contain expected values before this line executes.

LOCAL_JAVA should have the path to your new java installation ending in "javaw.exe".
SQUIRREL_SQL_HOME should be the path, probably in "Program Files" where Squirrel lives.

Supposedly versioncheck.jar is compiled in Java 1.2 which should run anywhere.

ErrorLevel 1 could indicate that the jar file is not found in "%SQUIRREL_SQL_HOME%\lib\versioncheck.jar", or that the javaw.exe in LOCAL_JAVA is not java version 1.6, 1.7, or 1.8. There should be a log file somewhere with the messages. If you can't find the jar file, you need to display the contents of LOCAL_JAVA and SQUIRREL_SQL_HOME just before this command is run in the .bat file to see what to do next.

I very strongly suspect that JAVA_HOME is not set correctly on your machine.

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-
bounces@xxxxxxxxxxxx] On Behalf Of Gary Thompson
Sent: Monday, December 09, 2013 1:17 PM
To: Java Programming on and around the IBM i
Subject: squirrel not starting after java update

Last week Dan Kimmel kindly suggested some changes
to squirrel-sql.bat that may help identify the problem
that started when I updated java on my windows 7
laptop and also followed the java update suggestion that
old versions be removed.

My first change was removing the "/B" option.

That apparently did nothing, so I added "pause" cmds
until I think I have located the failing line:

"%LOCAL_JAVA%" -cp "%SQUIRREL_SQL_HOME%\lib\versioncheck.jar"
JavaVersionChecker 1.6 1.7 1.8

The next line is:

if ErrorLevel 1 goto ExitForWrongJavaVersion

And this is the path the batch file takes.

From my Windows laptop:
Java Control Panel
General tab, click About, I see:
Java Standard Edition
Version 7 Update 45 (build 1.7.0_45-b18)

So, apparently this does not meet JavaVersionChecker expectations

but I don't know what to do next . . .
--
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-2024 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.