Mark,
I have tried everything suggested. Now it appears to be hanging at the
versioncheck.jar.
Is there by chance and Windows version of the install? Or, does someone
running on XP have a copy of their squirrel-sql.bat file I could compare
mine with?
Thanks!
Jim Kiefer
Information Systems
Park Center
"Mark J. Reed"
<markjreed@gmail.
com> To
JIM...@pa...
04/14/2010 12:42 cc
PM squ...@li...urceforg
e.net
Subject
Re: [Squirrel-sql-users] Could not
find the main class. Programwill
exit.
The comments tell you which one is the problem:
@rem Run with no command window. This may not work with older versions of
Windows. Use the command above then.
start "SQuirreL SQL Client" /B "%LOCAL_JAVA%w" -Xmx256m
-Dsun.java2d.noddraw=true -cp %SQUIRREL_CP%
net.sourceforge.squirrel_sql.client.Main %TMP_PARMS%
In this case, XP is an "older version of Windows". The "command above"
it's referring to is the "Run with command window" one:
@rem Run with a command window.
@rem "%LOCAL_JAVA%" -cp %TMP_CP% net.sourceforge.squirrel_sql.client.Main
%TMP_PARMS%
So so uncomment the one and comment the other and things should work,
albeit with an extra command window hanging around. You can set the
shortcut to "run minimized" to make that less of an issue.
On Wed, Apr 14, 2010 at 12:30 PM, <JIM...@pa...> wrote:
Thanks for your response. I am not familiar with javascript and see
several start command commented out. I tried to uncomment a couple of
them
but it still is not working. Which commands are you referring to? I've
attached the .bat file I'm using.
=========================================================================================================================================================
@echo off
IF "%JAVA_HOME%"=="" SET LOCAL_JAVA=java
IF NOT "%JAVA_HOME%"=="" SET LOCAL_JAVA=%JAVA_HOME%\bin\java
set basedir=%~f0
:strip
set removed=%basedir:~-1%
set basedir=%basedir:~0,-1%
if NOT "%removed%"=="\" goto strip
set SQUIRREL_SQL_HOME=%basedir%
@rem Check to see if we are running in a 1.6/1.7 JVM and inform the user
if
not and skip launch. versioncheck.jar
@rem is a special jar file which has been compiled with javac version
1.2.2, which should be able to be run by
@rem that version of higher. The arguments to JavaVersionChecker below
specify the minimum acceptable version
@rem (first arg) and any other acceptable subsequent versions.
<MAJOR>.<MINOR> should be all that is
@rem necessary for the version form.
"%LOCAL_JAVA%w" -cp "%SQUIRREL_SQL_HOME%\lib\versioncheck.jar"
JavaVersionChecker 1.6 1.7
if ErrorLevel 1 goto ExitForWrongJavaVersion
@rem If the changelist.xml file isn't present or the downloaded update
jars
don't exist, skip launching the updater - these files are created by the
@rem software update feature inside of SQuirreL. So their absence, simply
means the software update feature hasn't been accessed.
if not exist "%SQUIRREL_SQL_HOME%\update\changeList.xml" goto
launchsquirrel
SET TMP_CP="%SQUIRREL_SQL_HOME%\update\downloads\core\squirrel-sql.jar"
if not exist %TMP_CP% goto launchsquirrel
dir /b "%SQUIRREL_SQL_HOME%\update\downloads\core\*.*" >
%TEMP%\update-lib.tmp
FOR /F %%I IN (%TEMP%\update-lib.tmp) DO CALL
"%SQUIRREL_SQL_HOME%\addpath.bat" "%SQUIRREL_SQL_HOME%\update\downloads
\core\%%I"
SET UPDATE_CP=%TMP_CP%
SET UPDATE_PARMS=--log-config-file
"%SQUIRREL_SQL_HOME%\update-log4j.properties" --squirrel-home
"%SQUIRREL_SQL_HOME%" %1 %2 %3 %4 %5 %6 %7 %8 %9
"%LOCAL_JAVA%w" -cp %UPDATE_CP% -Dlog4j.defaultInitOverride=true
-Dprompt=true
net.sourceforge.squirrel_sql.client.update.gui.installer.PreLaunchUpdateApplication
%UPDATE_PARAMS%
:launchsquirrel
@rem build SQuirreL's classpath
set TMP_CP="%SQUIRREL_SQL_HOME%\squirrel-sql.jar"
dir /b "%SQUIRREL_SQL_HOME%\lib\*.*" > %TEMP%\squirrel-lib.tmp
FOR /F %%I IN (%TEMP%\squirrel-lib.tmp) DO CALL
"%SQUIRREL_SQL_HOME%\addpath.bat" "%SQUIRREL_SQL_HOME%\lib\%%I"
SET SQUIRREL_CP=%TMP_CP%
echo "SQUIRREL_CP=%SQUIRREL_CP%"
SET TMP_PARMS=--log-config-file "%SQUIRREL_SQL_HOME%\log4j.properties"
--squirrel-home "%SQUIRREL_SQL_HOME%" %1 %2 %3 %4 %5 %6 %7 %8 %9
@rem Run with a command window.
@rem "%LOCAL_JAVA%" -cp %TMP_CP% net.sourceforge.squirrel_sql.client.Main
%TMP_PARMS%
@rem To add translation working directories to your classpath edit and
uncomment this line:
@rem start "SQuirreL SQL Client" /B "%LOCAL_JAVA%w" -Xmx256m -cp
%TMP_CP%;<your working dir here> net.sourceforge.squirrel_sql.client.Main
%TMP_PARMS%
@rem -Dsun.java2d.noddraw=true prevents performance problems on Win32
systems.
@rem To change the language edit and uncomment this line:
@rem start "SQuirreL SQL Client" /B "%LOCAL_JAVA%w" -Xmx256m
-Dsun.java2d.noddraw=true -cp %TMP_CP%;<your working dir here>
-Duser.language=<your language here>
net.sourceforge.squirrel_sql.client.Main %TMP_PARMS%
@rem Run with no command window. This may not work with older versions of
Windows. Use the command above then.
start "SQuirreL SQL Client" /B "%LOCAL_JAVA%w" -Xmx256m
-Dsun.java2d.noddraw=true -cp %SQUIRREL_CP%
net.sourceforge.squirrel_sql.client.Main %TMP_PARMS%
@rem Run the executable jar file with or without a cmd window. However
the
@rem classes from the %CLASSPATH% environment variable will not be
available.
@rem "%LOCAL_JAVA%" -jar "%SQUIRREL_SQL_HOME%\squirrel-sql.jar"
%TMP_PARMS%
@rem start "SQuirreL SQL Client" /B "%LOCAL_JAVA%w"
-Dsun.java2d.noddraw=true -jar "%SQUIRREL_SQL_HOME%\squirrel-sql.jar"
%TMP_PARMS%
:ExitForWrongJavaVersion
exit
=========================================================================================================================================================
Thanks,
Jim Kiefer
Information Systems
Park Center
"Mark J. Reed"
<markjreed@gmail.
com> To
JIM...@pa...
04/14/2010 12:15 cc
PM John Hardin <jh...@im...>,
Squirrel SQL users list
<squ...@li...urcefor
ge.net>
Subject
Re: [Squirrel-sql-users] Could not
find the main class. Programwill
exit.
The supplied .BAT file doesn't work on XP; it requires Vista or newer.
If
you look in the batch file there's a commented-out version of the Java
command; just uncomment it and comment the other one, and it should work.
As far as I can tell, the new version of the command takes advantage of
some trick that allows the command window to close while the Java process
keeps running, but that trick doesn't work on XP. So you get the command
window. You can either set it to Run Minimized and live with it, or use
the old standby WSH trick, which is what I did - sticking a WSH script in
front of the batch file and changing the shortcut to run that WSH script
instead of the batch file directly. This is the squirrel-sql.js file I
created:
var wsh = WScript.CreateObject('WScript.Shell')
var command = 'squirrel-sql.bat'
var args = new Enumerator(WScript.Arguments)
for (args.moveFirst(); !args.atEnd(); args.moveNext())
{
command += ' "' + args.item() + '"'
}
wsh.run(command, 0)
wsh = undefined
On Wed, Apr 14, 2010 at 10:30 AM, <JIM...@pa...> wrote:
Rob,
The only thing in my classpath is: C:\Program Files\Java\jre1.6.0\lib
\ext
\QTJava.zip
I tried to put this in quotes but still get nothing.
Thanks.
Jim Kiefer
Information Systems
Park Center
John Hardin
<jhardin@impsec.o
rg>
To
JIM...@pa...
04/14/2010 10:01
cc
AM Squirrel SQL users list
<squ...@li...urcefor
ge.net>
Subject
Re: [Squirrel-sql-users] Could not
find the main class. Programwill
exit.
On Wed, 14 Apr 2010, JIM...@pa... wrote:
> Well, that cleared up the error message but now I just get a quick
open
> and close of the dos window without any error messages. Any other
ideas
> I might try?
I got that behavior when I upgraded recently. If I remember correctly,
it
was from having a very old version of Java (1.4 ?) libraries in my
systemwide CLASSPATH.
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jh...@im... FALaholic #11174 pgpk -a jh...@im...
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
Taking my gun away because I *might* shoot someone is like cutting
my tongue out because I *might* yell "Fire!" in a crowded theater.
-- Peter Venetoklis
-----------------------------------------------------------------------
Today: the 145th anniversary of Lincoln's assassination
***************************************************************
CONFIDENTIALITY NOTICE: This email message and any accompanying attached
document(s) may contain legally privileged, confidential information as
defined by HIPAA, State and Federal Confidentiality rules (42 CFR Part
2)
and IC 16-39-2-5, belonging to the sender. The information is intended
ONLY for the use of the individual or entity listed above. If you are
not
the intended recipient, you are hereby notified that any disclosure,
copying, distribution, use or taking of any action by reliance on the
contents of this emailed message or attached document(s) is STRICTLY
PROHIBITED. If you have received this email message in error, please
notify the sender immediately.
------------------------------------------------------------------------------
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
--
Mark J. Reed <mar...@gm...>
***************************************************************
CONFIDENTIALITY NOTICE: This email message and any accompanying attached
document(s) may contain legally privileged, confidential information as
defined by HIPAA, State and Federal Confidentiality rules (42 CFR Part 2)
and IC 16-39-2-5, belonging to the sender. The information is intended
ONLY for the use of the individual or entity listed above. If you are not
the intended recipient, you are hereby notified that any disclosure,
copying, distribution, use or taking of any action by reliance on the
contents of this emailed message or attached document(s) is STRICTLY
PROHIBITED. If you have received this email message in error, please
notify the sender immediately.
--
Mark J. Reed <mar...@gm...>
***************************************************************
CONFIDENTIALITY NOTICE: This email message and any accompanying attached document(s) may contain legally privileged, confidential information as defined by HIPAA, State and Federal Confidentiality rules (42 CFR Part 2) and IC 16-39-2-5, belonging to the sender. The information is intended ONLY for the use of the individual or entity listed above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, use or taking of any action by reliance on the contents of this emailed message or attached document(s) is STRICTLY PROHIBITED. If you have received this email message in error, please notify the sender immediately.
|