[size=medium]最近在CentOs6.4下安装完Oracle SQL Developer后,不能运行,后来发现是java home没有配置正确,因为我本机用到是CentOs默认的OpenJDK。
1.install sql developer
rpm -ivh sqldeveloper-3.2.20.09.87-1.noarch.rpm
2.open conf file, then set jdk path
vi /opt/sqldeveloper/sqldeveloper/bin/sqldeveloper.conf
add full jdk path to "SetJavaHome" properties.then add "SetSkipJ2SDKCheck true" to skip the jdk check.
IncludeConfFile ../../ide/bin/ide.conf
SetJavaHome /usr/lib/jvm(如果是Sun JDK 就改成/usr/java/jdk1.6.0_43)
SetSkipJ2SDKCheck true
AddVMOption -Doracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG=true
AddVMOption -Dsun.java2d.ddoffscreen=false
AddVMOption -Dwindows.shell.font.languages=
AddVMOption -XX:MaxPermSize=256M
AddVMOption -Doracle.jdbc.mapDateToTimestamp=false
IncludeConfFile sqldeveloper-nondebug.conf
3.Configuration font to display chinese.
Tools --> Preferences --> Code Editor --> Fonts [/size]
1.install sql developer
rpm -ivh sqldeveloper-3.2.20.09.87-1.noarch.rpm
2.open conf file, then set jdk path
vi /opt/sqldeveloper/sqldeveloper/bin/sqldeveloper.conf
add full jdk path to "SetJavaHome" properties.then add "SetSkipJ2SDKCheck true" to skip the jdk check.
IncludeConfFile ../../ide/bin/ide.conf
SetJavaHome /usr/lib/jvm(如果是Sun JDK 就改成/usr/java/jdk1.6.0_43)
SetSkipJ2SDKCheck true
AddVMOption -Doracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG=true
AddVMOption -Dsun.java2d.ddoffscreen=false
AddVMOption -Dwindows.shell.font.languages=
AddVMOption -XX:MaxPermSize=256M
AddVMOption -Doracle.jdbc.mapDateToTimestamp=false
IncludeConfFile sqldeveloper-nondebug.conf
3.Configuration font to display chinese.
Tools --> Preferences --> Code Editor --> Fonts [/size]