unsubscibe
.bz2 format?
Hi there, This may sound stupid, but how do I uncompress a bz2 file? Thanks.
[ANNOUNCE] LaTTe Java Virtual Machine
I said this on comp.compilers and think it may interest some in this news group. According to the site, the performance of this VM is comparable to Sun's hotspot. It's released under a BSDish license. Anyone with more Java VM programming experience cares to take a look at it and see how hard would it be to port it to Linux? David Li Topware Technology --- Subject: [ANNOUNCE] LaTTe Java Virtual Machine Date: 18 Oct 1999 23:41:30 -0400 From: [EMAIL PROTECTED] (Prof. Soo-Mook Moon) Organization: Seoul National University Newsgroups: comp.compilers, comp.lang.java.machine The LaTTe virtual machine has been released. It is a freely available virtual machine intended to execute Java classes. It can be obtained from <http://latte.snu.ac.kr/>. LaTTe is a research prototype for the study of dynamic (just-in-time) compilation techniques. Among its features are: * A fast and effective JIT compiler with - efficient register mapping and allocation - "traditional" optimizations (e.g., common subexpression elimination) - object-oriented optimizations (e.g., customization and specialization) * A limited framework for adaptive compilation, which is currently based on method run counts. * A reasonably fast bytecode interpreter, intended to be used with the adaptive compilation framework. * Lightweight monitors. * On-demand translation of exception handlers. * A fast, non-incremental garbage collector. As a result, the performance of the LaTTe JVM is competitive with that of commercial JVMs, such as Sun's Hotspot and JDK 1.2 production release, even without exploiting adaptive compilation. LaTTe runs on top of Solaris 2.5 or higher on UltraSPARCs. Currently, there are no plans to port LaTTe to other platforms. LaTTe was developed by the MASS Laboratory at Seoul National University with sponsorship from the IBM T.J. Watson Research Center. For downloading, documentation, and support please visit http://latte.snu.ac.kr/ === Thank you very much for your time in reading this announcement. If you have any questions about LaTTe, please contact us at [EMAIL PROTECTED], and we would be happy to help to the extent we can. Please feel free to pass this announcement on to other colleagues who might be interested. We hope you will enjoy the LaTTe web site. Prof. Soo-Mook Moon Seoul National University Dr. Kemal Ebcioglu IBM T.J. Watson Research Center -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Setting default encoding for String (byte[])
Hi, I am facing a strange behavior with JDK 1.2. String(byte[]) is supposed to construct a string from a byte array. using default encoding. The default encoding in terms comes from sun.io.ByteToCharConverter's getDefault(). I am wondering what determine what's return by the getDefault in ByteToCharConverter. My program if runs under command line use the current Big5 encoding. However, when I run it as a servlet under apache, it use ISO8859_1 converter. I have try to set a couple paramter for the VM from file.encoding, user.lang to user.region and none of these seems to affect the the default converter. I wonder how the getDefault() method is controled. David Li -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
What determine the default locale?
Hi, We are moving systems from CLE (Chinese language extension) to RedHat 6.1. In the process, we have found that it's tricky to get Java's runtime correctly support Chinese in RedHat 6.1 mainly due to the in correct setting of locale. We have tried several configurations but Java Runtime in RedHat always have default local to be en_US. We have tried setting LANG, LC_ALL, LC_CTYPE and etc. It doesn't seem to affect the default locale. We try adding -Dfile.encoding. Doesn't work either. Can any one with source access to JDK take a peek at how default locale is decided? Thanks. David Li Topware Technology -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: What determine the default locale?
> What has changed and what hasn't changed? Are you trying to use the same > Java distribution in two different Linux environments, or different JDK > distributions? It's the same JDK on two different Linux distribution. CLE is based on RedHat 6.0 and we are moving over to RedHat 6.1. CLE has some Chinese extension. The different between two distributions are small. However, JDK shows default locale to be TW under CLE and US under RedHat 6.1. I am wondering what environment or run time parameter affect the default locale setting of JDK. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: What determine the default locale?
> OK. The reason I ask is to try to rule things out. The environment has
> changed, the JDK hasn't, so maybe the environment needs more attention.
> I suspect your answer lies in the C library and its I18N support, not in
> the JDK. Have you tried other applications than the JDK, to see if their
> I18N capabilities have changed?
>
I have installed Chinese locale data into RedHat 6.1 and our C programs
that depending on locale work correctly.
> If you've got JDK1.2, it comes with a fair amount of source (src.jar),
> you may want to look in there. I didn't find anything obvious in a quick
> inspection, which increases my suspicion of libc, but you may want to
> take a look yourself.
>
I did look at the source from JDK 1.2. However, the really setting
depending on the class I don't have access to the soruce. Here is the
codes:
java.util.locale:
satic {
String language =
(String) AccessController.doPrivileged(
new GetPropertyAction("user.language","EN"));
String country =
(String) AccessController.doPrivileged(
new GetPropertyAction("user.region",""));
}
These two determines what the default locale will be. However
GetPropertyAction is in sun.security.action. I have a simple program
like this:
import java.util.Locale;
public class TestLocale
{
public static void main (String args[]) {
System.out.println (Locale.getDefault());
}
}
I have tried running it with and without -Duser.language=zh
-Duser.region=zh_TW. Those parameters don't seem to affect the locale
setting.
David
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
How to unsubscribe
Dear all, Sorry to bother you! Could you tell me how to subscribe the list? Thanks so much! Li Bing _.--"""--._ .' '-. `. __/__(-. `\ \ /o `o \ \\ \ _\__.__/ ))|| ; .--;" || \ (`) || \ _|`---' .' _, _||`\ '`_\ \ '_,.-';_.-`\| \ \_ .' '--'---;` / / |\ |_..--' \ \'-'.' .--'.__/__.-; `"` (___...---''` \ _/_\ /ASU\ [EMAIL PROTECTED] \___/ 480-965-9038(L), 480-829-8492(H) http://www.public.asu.edu/~libing winmail.dat
How to unsubscribe
Dear all, Sorry to bother you! Could you tell me how to subscribe the list? Thanks so much! Li Bing _.--"""--._ .' '-. `. __/__(-. `\ \ /o `o \ \\ \ _\__.__/ ))|| ; .--;" || \ (`) || \ _|`---' .' _, _||`\ '`_\ \ '_,.-';_.-`\| \ \_ .' '--'---;` / / |\ |_..--' \ \'-'.' .--'.__/__.-; `"` (___...---''` \ _/_\ /ASU\ [EMAIL PROTECTED] \___/ 480-965-9038(L), 480-829-8492(H) http://www.public.asu.edu/~libing winmail.dat
Playing MP3
Hi, all, Do you guys know to program in order to play MP3 files using Java? Thanks so much! Bing _ | How are you? |___ | I am Li Bing. | |__| |_ || OK? |::| | Need / |\.|::|__| Help? < | \::/ \.___\ /\**/\ | ___ ( o_o )_ |__|http://www.public.asu.edu/~libing / (u--u \_) | |[EMAIL PROTECTED], 914-945-1749(O) / (||___ )==\ |480-965-9038(L)602-743-9767(C) \ ,dP"/b/=( /P"/b\ |__\ |8 || 8\=== || 8 `b, ,P `b, ,P """` """` -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
