Menu

#1020 Shortcut and .bat file do not start the application

None
closed-duplicate
Installer (23)
5
2018-12-22
2012-01-19
No

Platform Windows 7, 64bit
After installation with admin privileges to the default folder "c:\Program Files (x86)\squirrel-sql-3.3.0\"
neither shortcut nor squirrel-sql.bat is able to start the apllication.
The following error is displayed:
C:\Program Files (x86)\squirrel-sql-3.3.0>squirrel-sql.bat
\Java\jdk1.6.0_22\\bin\javaw.exe was unexpected at this time.

There is a quick&dirty solution:
In the very beginning of the .bat file instead of complex expression
if exist "%IZPACK_JAVA%\bin\javaw.exe" (
set LOCAL_JAVA=%IZPACK_JAVA%\bin\javaw.exe
echo LOCAL_JAVA=%LOCAL_JAVA%
) else (
set LOCAL_JAVA=javaw.exe
)

put just simple instruction
set LOCAL_JAVA=%IZPACK_JAVA%\bin\javaw.exe

After it application is able to run.
Therefore this complex expression is to be fixed.

Discussion

  • Stefan Willinger

    • status: open --> closed-duplicate
     

Log in to post a comment.