ubuntu 安装sqldeveloper

1、首先从http://www.oracle.com/technology/software/products/sql/index.html下载sqldeveloper
  
  2、由于官方只有rpm包,所以在ubuntu下必须转换成dev格式的。
  
  sudo alien xxxx.rpm
  
  sudo dpkg -i xxxx.deb
  
  3、sqldeveloper必须有JDK支持,用新立德管理器安装,sun-java6-jdk
  
  4、终端管理器运行sudo sqldeveloper,一定要加上sudo,便于将java路径自动加入~/.sqldeveloper/jdk文件。
  
  然后会有以下提示:
  
  Type the full pathname of a J2SE installation (or Ctrl-C to quit), the path will be stored in ~/.sqldeveloper/jdk
  
  输入:/usr/lib/jvm/java-6-sun/回车即可(或者你的jvm的路径)。
  
  5、可能显示有部分中文乱码,通过以下方法解决。
  
  sudo ln -s /usr/share/fonts/truetype/arphic/uming.ttc /usr/lib/jvm/java-6-sun/jre/lib/fonts/fallback/
  
  不过要先建立fallback目录<wbr style="line-height:28px"><br style="line-height:28px"></wbr>

=========
我的换回自己用户报异常:
>sudo chmod 777 /opt/sqldeveloper
在运行完这个命令后修复了。
==============如下面异常:
Registered TimesTen
2011-12-20 19:21:56 oracle.ideimpl.extension.AddinManagerImpl createAddin
严重: jar:/file:/opt/sqldeveloper/sqldeveloper/extensions/oracle.datamodeler.jar!/META-INF/extension.xml:49: No class def found for addin oracle.dbtools.crest.fcp.DataModelerAddin
java.lang.NoClassDefFoundError: org/apache/log4j/xml/DOMConfigurator
at oracle.dbtools.crest.util.logging.Logger.init(Unknown Source)
at oracle.dbtools.crest.util.logging.Logger.<init>(Unknown Source)
at oracle.dbtools.crest.fcp.DataModelerAddin.<clinit>(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at oracle.ideimpl.extension.AddinManagerImpl.createAddin(AddinManagerImpl.java:433)
at oracle.ideimpl.extension.AddinManagerImpl.initializeAddins(AddinManagerImpl.java:212)
at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins(AddinManagerImpl.java:128)
at oracle.ide.IdeCore.initProductAndUserAddins(IdeCore.java:1949)
at oracle.ide.IdeCore.startupImpl(IdeCore.java:1573)
at oracle.ide.Ide.startup(Ide.java:703)
at oracle.ideimpl.DefaultIdeStarter.startIde(DefaultIdeStarter.java:35)
at oracle.ideimpl.Main.start(Main.java:184)
at oracle.ideimpl.Main.main(Main.java:146)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.ide.boot.PCLMain.callMain(PCLMain.java:62)
at oracle.ide.boot.PCLMain.main(PCLMain.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.classloader.util.MainClass.invoke(MainClass.java:128)
at oracle.ide.boot.IdeLauncher.bootClassLoadersAndMain(IdeLauncher.java:189)
at oracle.ide.boot.IdeLauncher.launchImpl(IdeLauncher.java:89)
at oracle.ide.boot.IdeLauncher.launch(IdeLauncher.java:65)
at oracle.ide.boot.IdeLauncher.main(IdeLauncher.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.ide.boot.Launcher.invokeMain(Launcher.java:713)
at oracle.ide.boot.Launcher.launchImpl(Launcher.java:115)
at oracle.ide.boot.Launcher.launch(Launcher.java:68)
at oracle.ide.boot.Launcher.main(Launcher.java:57)
Caused by: oracle.classloader.util.AnnotatedClassNotFoundException:

缺少类: org.apache.log4j.xml.DOMConfigurator

从属类: oracle.dbtools.crest.util.logging.Logger
加载器: ide-global:11.1.1.0.0
代码源: /opt/sqldeveloper/sqldeveloper/extensions/oracle.datamodeler.jar
配置: extension jar in /opt/sqldeveloper/sqldeveloper/extensions

此加载操作最初是在 ide-global:11.1.1.0.0 处使用 loadClass() 方法进行的。

缺少的类在系统上的任何代码源或加载器中均未提供。
at oracle.classloader.PolicyClassLoader.handleClassNotFound(PolicyClassLoader.java:2190)
at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1733)
at oracle.classloader.PolicyClassLoader.access$000(PolicyClassLoader.java:143)
at oracle.classloader.PolicyClassLoader$LoadClassAction.run(PolicyClassLoader.java:331)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1692)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1674)

你可能感兴趣的:(developer)