Windows is searching for SQLDEVELOPER.BAT.
To locate the file yourself, click Browse:
Select "Browse" and visit the path at the short cut target,
shown at the field highlight in blue:
Create a doc named sqldeveloper.bat and these code for placing inside:
@echo off REM Work around the fact that SQL Developer does NOT read REM JAVA HOME from the environment or the path and insists REM on asking for it at runtime and storing it in a file REM inside the (otherwise clean) installation directory. REM -- Make sure we have the proper environment. if not defined JAVA HOME goto USAGE if not defined DEV TOOLS goto USAGE goto OK :USAGE echo. echo NOTE: sqldev.bat requires that the environement variables echo JAVA HOME and DEV TOOLS be defined prior to executing. echo. if not defined JAVA HOME echo JAVA HOME is not set! if not defined DEV TOOLS echo DEV TOOLS is not set! echo. echo Exiting. echo. pause goto :EOF :OK REM Save current directory. SET RETURN TO %CD% REM -- Make sure we are working with a clean conf file. CD %DEV TOOLS% sqldeveloper sqldeveloper bin & svn revert sqldeveloper.conf NUL REM -- Append SetJavaHome onto the sqldeveloper.conf file. echo SetJavaHome %JAVA HOME% %DEV TOOLS% sqldeveloper sqldeveloper bin sqldeveloper.conf REM -- Execute SQL Developer start %DEV TOOLS% sqldeveloper sqldeveloper bin sqldeveloperW.exe REM Return to original directory. CD %RETURN TO%Or you can download the file from HERE
or from here:
http://dev-tools.sanctuary-dev-tools.googlecode.com/hg/utils/sqldeveloper.bat
* * *
And then run SQL Developer again,
and you may found this error :
JAVA_HOME is not set!
DEV_TOOLS is not set!
About how to set up the environment variable, you can try this steps (in my case, plat-flat is win 7):
- Right-click the My Computer icon on your desktop and select Properties.
- Click the Advanced tab.
- Click the Environment Variables button.
- Under System Variables, click New.
- Enter the variable name as
JAVA_HOME
. - Enter the variable value as the installation path for the Java Development Kit.
- If your Java installation directory has a space in its path name, you should use the shortened path name (e.g.
C:\Progra~1\Java\jre6
) in the environment variable instead.
- Click OK.
- Click Apply Changes.
https://confluence.atlassian.com/display/DOC/Setting+the+JAVA_HOME+Variable+in+Windows
-------------------------------------------------------------------
By using this method, JAVA_HOME is set and DEV_Tools is not been set yet,
Using same method to set that (DEV_TOOL)
If the problem still can not be solved,
you can follow this post and install the SQL developer package to try :
No comments :
Post a Comment