Hi 张韡武:, take a look into /etc/java. Inside that directory you can find a java.conf and a README file. Best Regards, Peter Am Freitag, 14. Juli 2006 08:58 schrieb 张韡武:
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!
-