#835 Failure to launch without quotes in CLASSPATH variable

3.1
closed-invalid
5
2010-03-13
2010-03-06
Joe Faletti
No

After a fresh install on up-to-date Windows XP Pro with squirrel-sql-3.1-install.jar downloaded on 3/5/2010, client failed to launch, with Java Launcher complaining of inability to launch MAIN, and showing a portion of my CLASSPATH variable as "Files/Java/jre6/lib;C:\Program". Tried a variety of additions of double quotes in the .bat without success. Surrounding the value of my CLASSPATH setting (which had not changed in form for years before this with lots of Java programs installed) in System->Advanced->Environment Variables... fixed the problem, but hopefully won't turn out to break something else.

Some prior history that may/may not be relevant... Started the process with a months-old installation of 2.x which was not showing any drivers in the Drivers tab despite having most of the available ones installed. Auto-upgraded to 3.1 via the app itself without success, but also without this problem. Then uninstalled, downloaded new installer, installed fresh, encountered and worked-around this problem. (Still had same problem with Drivers until I deleted .squirrel-sql folder from home directory)

Discussion

  • Joe Faletti

    Joe Faletti - 2010-03-06

    jre6 should have been stated as "jdk1.6.0_16"

     
  • Rob Manning

    Rob Manning - 2010-03-08

    Joe,

    So that I can reproduce this locally, could you tell me what your CLASSPATH variable is set to before squirrel-sql.bat is executed ?

    Rob

     
  • Joe Faletti

    Joe Faletti - 2010-03-08

    System CLASSPATH variable was
    .;C:\Program Files\Java\jdk1.6.0_16\lib;C:\Program Files\Java\jre6\lib\ext\QTJava.zip
    according to Control Panel->System->Advanced->Environment Variables....
    Added double quotes around that to run SQuirreL.
    Minutes later an attempt to access our Cisco VPN bombed Firefox and froze the VPN, so I have reverted to without quotes and without SQuirreL until I can verify that it had anything to do with the added quotes. Thanks.

     
  • Rob Manning

    Rob Manning - 2010-03-13

    Hi Joe,

    In Windows, you need to quote every individual path that contains spaces. As I have recently discovered, adding quotes around an already quoted path, surprisingly unquotes the path. So, I believe the correct CLASSPATH variable for your system would look like this:

    .;"C:\Program Files\Java\jdk1.6.0_16\lib";"C:\Program Files\Java\jre6\lib\ext\QTJava.zip"

    I reproduced the error that you were getting and the fixed CLASSPATH above allows SQuirreL to launch correctly. Try that and let me know how that works out for you.

    Rob

     
  • Rob Manning

    Rob Manning - 2010-03-13
    • milestone: --> 3.1
     
  • Joe Faletti

    Joe Faletti - 2010-03-13

    Thanks, Rob,
    Quoting each element of the CLASSPATH fixes my problem with SQuirreL and does not appear to break any other Java-based apps. So I'm good now, thanks.

     
  • Rob Manning

    Rob Manning - 2010-03-13

    Fantastic - I'll close this ticket then.

    Rob

     
  • Rob Manning

    Rob Manning - 2010-03-13
    • status: open --> closed-invalid
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks