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...>
|