Mailinglist Archive: opensuse (2831 mails)

< Previous Next >
[SLE] how to switch to IBM JRE
  • From: 张韡武 <zhangweiwu@xxxxxxxxxx>
  • Date: Fri, 14 Jul 2006 14:58:52 +0800
  • Message-id: <1152860332.23176.13.camel@xxxxxxxxxx>
Hello. Using SuSE 10.1 in zh_CN.UTF-8 locale, frequently a java
application suddenly stop responding to keyboard events (only responds
to mouse). a.k.a typing anything in java applications is like not typied
anything at all. This affects all java applications and even openoffice
(the one installed using OOO official RPM). I am pretty sure this only
affects Chinese user because I can easily observe this bug on many SuSE
computers and even on Gentoo Linux, but this bug cannot survive so long
if western people suffer from it too:)

I decide to switch to IBM JRE which do not suffer from this problem.
After installed it (from Official IBM JRE site) I can use it by setting
JAVA_HOME manually, but I cannot make this setting system-wide. This is
what I tried after reading various documents:
1. I tried to add 'export JAVA_HOME=/opt/ibm/java2-i386-50/jre/'
in /etc/profile. Result: $JAVA_HOME is still "/usr/lib/jvm/java"
2. I tried to add 'JAVA_HOME=/opt/ibm/java2-i386-50/jre'
to /etc/java/java.conf. Result: $JAVA_HOME is still
"/usr/lib/jvm/java"
3. I tried "update-alternatives --config java" and was told "There
is only 1 program which provides java
(/usr/lib/jvm/jre-1.5.0-sun/bin/java). Nothing to configure."
4. I tried to use setDefaultJava and setJave, both produce the
following error message:
################################################################
# setDefaultJava is no longer supported. Please install the #
# package jpackage-utils and read the documentation in #
# /usr/share/doc/packages/jpackage-utils for information about #
# the new java packages on SUSE Linux. #
################################################################


Please give me some hints or let me know which document to read if I
wish to change the global-settings of default JRE. Thank you!

--
锐业软服(国内业务) http://www.realss.cn
Real SoftService http://www.realss.com
销售咨询(Sales Department): 0086 592 20 99987 (Chinese, German,
English)
国际业务(International Sales): 0086 10 8460 6011 (German and English)
联系:厦门大学科技园,嘉庚二号楼6楼
邮政:厦门大学2312号信箱(邮编361005)
< Previous Next >