The first step you should try is to run squirrel-sql.bat from the command line as the previous email suggests. This is generally the easiest way to find out what's wrong.
In your case it sounds like SQuirreL isn't finding java. Your technique of solving it was "move Java to SQuirrel". I think you'll find it's better to try the technique of "point SQuirreL to Java". To do this you could modify environment variables so that JAVA_HOME is well defined. But I find it easier to directly modify squirrel-sql.bat so I know exactly what's going on.
Try this idea to get a squirrel-sql.bat file that looks like this:
@echo off
rem Note to myself: the following line was added by me (31 Jan 2006)
SET LOCAL_JAVA=C:\j2sdk1.4.2_04\bin\java
set SQUIRREL_SQL_HOME=C:\Program Files\SQuirreL SQL Client
[standard squirrel-sql.bat continues...]
You probably have a JRE rather than a JDK (or SDK or whatever it's called). So your path to it will be something like this: C:\Program Files\Java\jdk1.5.0_06\bin\java

From: [] On Behalf Of Eric Townson
Sent: Sunday, March 12, 2006 6:47 AM
Subject: Re: [Squirrel-sql-users] Trouble Running Squirrel

Are you using the Sun JRE? You can test what JRE is being picked up on the classpath by typing java -version at a command prompt (Start/Run/cmd <enter>). If so, I would go to the Control Panel and open the Java control center and make sure the Sun Java is the default JRE. If that doesn't work then I would try uninstalling and reinstalling it. That should set things right again. I'd also go with the latest 5.0 version.

Another option would be to run the batch file that SQuirreL uses to launch from the command prompt. It will be best to first CD to the SQuirreL folder. This might allow you to see some more error messages. Finally, you could make a copy of this batch file and modify it.


Steve Dunn wrote:
I've just installed Squirrel and can't seem to get it to run. When I double-click the desktop icon I get a windows error box. At first it couldn't find 'javaw', so I copied it into Squirrel's folder. Now it says it can't find the JRE. My classpath is set so it should find it. Can anyone provide any assistance . . . your help would be greatly appreciated.
------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! _______________________________________________ Squirrel-sql-users mailing list