日期:2014-05-16  浏览次数:21000 次

在linux下安装openoffice出现这样的错误,帮忙解决一下。
installdata JavaSetup.jar licenses readmes RPMS setup update
[root@datacomo72 OOO320_m18_native_packed-1_zh-CN.9502]# ./setup
Checksumming...
Extracting ...
99306 blocks
Making symbolic links to TrueType font files into usr/java/jre1.6.0_20/lib/fonts/fallback.
./setup: line 323: [: too many arguments
Done.
Using /var/tmp/install_4687/usr/java/jre1.6.0_20/bin/java
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode)

Running installer
/var/tmp/install_4687/usr/java/jre1.6.0_20/bin/java -DHOME=/root -DJRE_FILE=jre-6u20-linux-i586.rpm -jar JavaSetup.jar
System locale: zh_CN
Root privileges
OS: Linux
Mode: installation
Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
        at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
        at java.awt.Window.<init>(Unknown Source)
        at java.awt.Frame.<init>(Unknown Source)
        at java.awt.Frame.<init>(Unknown Source)
        at javax.swing.SwingUtilities$SharedOwnerFrame.<init>(Unknown Source)
        at javax.swing.SwingUtilities.getSharedOwnerFrame(Unknown Source)
        at javax.swing.JDialog.<init>(Unknown Source)
        at javax.swing.JDialog.<init>(Unknown Source)
        at javax.swing.JDialog.<init>(Unknown Source)
        at org.openoffice.setup.SetupFrame.<init>(SetupFrame.java:109)
        at org.openoffice.setup.Main.main(Main.java:54)