[问题]如何将永中office里的JAVA升级到JAVA6

C、C++和Java语言
回复
头像
tomcat.xin
帖子: 400
注册时间: 2007-02-08 21:18
送出感谢: 0
接收感谢: 0
联系:

[问题]如何将永中office里的JAVA升级到JAVA6

#1

帖子 tomcat.xin » 2007-11-29 23:30

由于JAVA5和COMPIZ冲突,开了特效后永中就白屏,虽然有解决方法

代码: 全选

加个 
export AWT_TOOLKIT="MToolkit"
可是这样的话Eioffice运行的不流畅,文件保存时下拉框也出不来,所以想升级到JAVA6
可是装了JAVA6后也照着http://rehay.yculblog.com/post.2521317.html
设置了链接
可是运行时报错如下

代码: 全选

@ubuntu:/usr/local/Evermore/EIOffice$ eio
Exception in thread "main" java.lang.ExceptionInInitializerError
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at java.awt.Toolkit$2.run(Toolkit.java:836)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:828)
        at emo.system.ShellMethods.showSplash(Unknown Source)
Caused by: java.lang.NullPointerException
        at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1173)
        at sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:146)
        at sun.awt.FontConfiguration.<init>(FontConfiguration.java:71)
        at sun.awt.motif.MFontConfiguration.<init>(MFontConfiguration.java:31)
        at sun.awt.X11GraphicsEnvironment.createFontConfiguration(X11GraphicsEnvironment.java:897)
        at sun.java2d.SunGraphicsEnvironment$2.run(SunGraphicsEnvironment.java:205)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.java2d.SunGraphicsEnvironment.<init>(SunGraphicsEnvironment.java:125)
        at sun.awt.X11GraphicsEnvironment.<init>(X11GraphicsEnvironment.java:204)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
        at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:89)
        ... 6 more
该如何解决呢?
我对JAVA一窍不通
谢谢
头像
jiushibuhuan
帖子: 343
注册时间: 2007-10-23 20:04
送出感谢: 0
接收感谢: 0

#2

帖子 jiushibuhuan » 2007-11-30 10:19

既然永中用java5,说明他们是在这个平台上开发测试的,你强行换到java6上,肯定会出莫名其妙的问题
头像
tomcat.xin
帖子: 400
注册时间: 2007-02-08 21:18
送出感谢: 0
接收感谢: 0
联系:

#3

帖子 tomcat.xin » 2007-11-30 22:55

就真的没办法了吗?
回复

回到 “C/C++/Java”