How to use Java options -Xms and -Xmx on Linux?

2001-05-10 Thread Lee_Xing
Hi, It would be appreciated if someone could help me on the following questions. Q1: can I use "k", "m" and "g" to specify kbyte, mbyte and gbyte, like -Xms700m (for 700 mb), -Xmx2g (for 2 gb)? Q2: is there any upper limit for -Xms and -Xmx values, or can I use whatever value I wa

Source Code of Web Browser for Linux

2000-05-01 Thread Lee_Xing
Hi: Is there any source code of a Web browser for Linux available somewhere? It's even better if it's pure Java source code, so we can use it on different platform to get a consistent interface? Thanks. Lee -- To UNSUBSCRIBE

RE: Java app and Native Processes on Linux

2000-03-20 Thread Lee_Xing
Hi:   I'm trying to use two java threads t1 and t2, and each one uses exec() to start the same C native application.  It seems JVM (BlackDown 1.1.8 v1) never switches from t1 to t2.  The output looks like:   In thread t1: i = 0 In thread t1: i = 1 In thread t1: i = 2   ...   I put s

exec() on Linux

2000-03-16 Thread Lee_Xing
Hi:   I got a java application that uses exec("nativeApp.exe") to start a native application.  It works fine on NT.  But on Linux exec("a.out") gets an exception saying a.out could not be found.  a.out is placed in the same directory as java app does.  What I missed?   Thank you.     Lee  

JNI & _init() function in .so file

2000-02-07 Thread Lee_Xing
Hi, Got two questions on JNI and .so file. It would be appreciated if someone could help. Q1: I was told that when java jni loads .so file, the first function been called is _init(). Can I use it as a constructor to setup something when java app loads the .so file? If I put _init() func in .

BlackDown JDK and Linux on IA64

2000-02-07 Thread Lee_Xing
Hi, Got two general questions here. Could someone provide some info? Thank you. Lee === Q1: If the current Balckdown JDK will be compatible with Linux64 and Intel IA64 platform? If not, any plan or info. on this? Q2: Can we freely distribute BlackDown jre (not jdk) to customers to let t

RE: JNI & .so Files

2000-02-07 Thread Lee_Xing
Thanks, Weiqi. Yes it works. Is it for two threads only? Regards, Lee -Original Message- From: Weiqi Gao [mailto:[EMAIL PROTECTED]] Sent: Friday, February 04, 2000 12:57 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: JNI & .so Files [EMAIL PROTECTED] wrote: > > [accessing

RE: JNI & .so Files

2000-02-04 Thread Lee_Xing
Weiqi, You are right. That's the problem. Sorry for the careless mistake. To make the code more interesting, I add two threads, t1 and t2, in the code this time and found some problems, maybe they are my problems again :( Q1: Based on JNI spec, different native functions in the same thread

RE: JNI & .so Files

2000-02-03 Thread Lee_Xing
Hi Nathan, Thank you very much for your information. I created three small real files (app.java, so1_beep.c and so2_hello.c) and attach them below. They can be compiled into .class, .h, .o and .so files. I'm using BlackDown 1.1.8 v1 on RH6.1 It seems so2 can call back to so1, but when so1 cal

RE: JNI & .so Files

2000-02-03 Thread Lee_Xing
Hi Nathan, Thank you for your response. Please let me re-address my question by using the following pseudo code. I embedded my question in so2.c pseudo code. The following lines are app.java, so1.c and so2.c. They are only pseudo code. == //app.java public

JNI & .so Files

2000-02-02 Thread Lee_Xing
Hi, I got a question on JNI. It would be appreciated if someone could help. Q: In order to hide java and jni related issues (e.g. jni function name convention, etc.) from .so programmers, a wrapper .so file so1.so is used in between java app and another .so file so2.so (the one with native fun

RE: Java-Linux I18N Tutorial

2000-02-01 Thread Lee_Xing
Hi Renzo: Thank you for the information you put together. It helps. Regards, Lee -Original Message- From: Renzo Pecoraro [mailto:[EMAIL PROTECTED]] Sent: Monday, January 31, 2000 2:14 AM To: [EMAIL PROTECTED] Subject: Java-Linux I18N Tutorial All - I started a little Java-Linux I1

RE: JNI and Dead Thread on Linux

2000-01-28 Thread Lee_Xing
Juergen, Thank you and all other people responding to my e-mail. Yes, you are right. I forgot to change the function name in C file after moved the native function declaration into another java class. Sorry for the careless mistake. Regards, Lee -Original Message- From: Juergen Kre

RE: JNI and Dead Thread on Linux

2000-01-27 Thread Lee_Xing
-Original Message- From: Jo Uthus [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 27, 2000 1:31 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: JNI and Dead Thread on Linux [EMAIL PROTECTED] wrote: | Q1: | | command line command "ps -a" shows 4 java (JVM) running.

RE: JNI and Dead Thread on Linux

2000-01-26 Thread Lee_Xing
Thanks, Juergen. Yes. 1.1.8-v1 fixed this problem. I got two questions on JNI and thread. Could someone help me on these? Thank you. Environment: RH6.1, BlackDown 1.1.8_v1 Q1: After start the following simple java application by using "java -native test", public class test { public s

RE: JNI and Dead Thread on Linux

2000-01-25 Thread Lee_Xing
Hi Nathan: Thank you for your information. I downloaded jdk_1.1.7-v3-glibc-x86-native.tar.gz and unpack it from the $JAVA_HOME directory. When I run "java -native app", I got an error message like: "Cannot open /proc/00762 for GC/mnt/e/Linux/java/jni/Sample3/app", and every time when I re-t

RE: JNI and Dead Thread on Linux

2000-01-23 Thread Lee_Xing
Hi Nathan: Thank you for the information and sorry for the careless mistake. Based on your book and information posted on the mail list. It seems: Q1: There are only two ways to create new threads when use JNI on Linux (and other OS). (a) use Thread.start in java code. (b) let native c

JNI and Dead Thread on Linux

2000-01-19 Thread Lee_Xing
Hi: I got a few questions on JNI on Linux. It would be appreciated if someone could help. Suppose a shared library file has a function that is used to do hardware I/O, say hard drives R/W. A Java application uses JNI and calls this native function in .so file twice to R/W two separate hard dri

RE: Java-Linux I18N

2000-01-17 Thread Lee_Xing
Renzo: Thank you very much for your help and information. It's very helpful. I'll send time to digest all of the information and give it a try. Regards, PS. This msg may not be able to be posted in the mail list. I don't know why. Lee -Original Message- From: Renzo Pecoraro [mail

RE: Nathan's Book

2000-01-13 Thread Lee_Xing
Thank you for your help, Nathan. Regards, Lee -Original Message- From: Nathan Meyers [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 12, 2000 6:27 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Nathan's Book On Wed, Jan 12, 2000 at 06:14:17PM -0600, [EMAIL PROTECTED]

RE: Nathan's Book

2000-01-12 Thread Lee_Xing
-Original Message- From: Nathan Meyers [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 12, 2000 5:46 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Nathan's Book On Wed, Jan 12, 2000 at 05:37:22PM -0600, [EMAIL PROTECTED] wrote: > Thanks, Nathan. > > Yes, it's copyrig

RE: Nathan's Book

2000-01-12 Thread Lee_Xing
Thanks, Nathan. Yes, it's copyright 2000. The reason I asked the question because I couldn't find any topic on internationalization from the book. It would be appreciated if you could give me some information on how to implement this (i.e. display Japanese or Chinese on buttons, listbox, menu,

RE: Nathan's Book

2000-01-12 Thread Lee_Xing
Hi Nathan: Are you going to make a new version of this book recently? Thank. Lee -Original Message- From: Jacob Nikom [mailto:[EMAIL PROTECTED]] Sent: Monday, January 10, 2000 11:19 AM To: Nathan Meyers Cc: Rich Ibbotson; [EMAIL PROTECTED] Subject: Re: Nathan's Book Does "Java Progr

RE: Thread in the Linux's JVM

1999-11-22 Thread Lee_Xing
Nathan, I really appreciate your valuable information. It helps a lot. Pardon me for one more question - how to check thread status from command line (like "ps" is used to check process status from command line) on Linux? I'm new in Linux. Regards, Lee -Original Message- From: Natha

Compile Error from BlackDown jdk 1.1.7

1999-11-16 Thread Lee_Xing
Hi: I installed BlackDown jdk_1.1.7-v3-glibc-x86.tar.gz on RedHat 6.1 Linux. There is no problem to compile a simple java application (hello.java). But got compile error when compile an application with Swing component. The error message is "Package com.sun.java.swing.* not found in import". W

Is it another option for Java-Linux (Kaffe in RedHat Linux 6.1)?

1999-11-11 Thread Lee_Xing
Hi: Is anybody using Java compiler and run time for Linux coming with RedHat Linux 6.1? The package name is "kaffe" and is on RedHat 6.1 first CD. I can compile and run java applications with them. Can someone tell me something about it compare with Blackdown and IBM's Java for Linux? Thank

Kaffe in RedHat Linux 6.1

1999-11-11 Thread Lee_Xing
Hi: Is anybody using Java compiler and run time for Linux coming with RedHat Linux 6.1? The package name is "kaffe" and is on RedHat 6.1 first CD. I can compile and run java applications with them. Can someone tell me something about it compare with Blackdown and IBM's Java for Linux? Thank

BlackDown Files for Redhat Linux 6.1

1999-10-22 Thread Lee_Xing
Hi, Could you please tell me what files we should download from Blackdown for Redhat Linux 6.1? Thanks. L. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Can we run Java app from a CD with Blackdown?

1999-10-15 Thread Lee_Xing
Hi: We got a few questions on deployment with Blackdown. It would be appreciated if someone could help. Q1: After we finish a Java application development on Windows NT 4.0 (Intel) with VisualCafe 3.0, is it possible to include everything** on a CD, and let user run the Java application from th

Java and Linux

1999-10-11 Thread Lee_Xing
Hi: I'm new in Linux. Please forgive me if the questions are too simple. Q1: What version of Java (1.1 or 1.2) does JVM inside Blackdown JDK package support? Q2: A Java application was developed on Windows NT 4.0 (Intel) by using VisualCafe 3.0. Can we simply move all class files of the applic

RE: Thread in the Linux's JVM

1999-01-17 Thread Lee_Xing
-Original Message- From: Nathan Meyers [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 18, 1999 3:32 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Thread in the Linux's JVM On Thu, Nov 18, 1999 at 11:59:04AM -0600, [EMAIL PROTECTED] wrote: > This sounds to me like Java

RE: Thread in the Linux's JVM

1999-01-16 Thread Lee_Xing
This sounds to me like Java and C/C++ native code can talk to each other only if they (java and native code) are in the same thread. Is it right, or in the same process? Suppose C/C++ native code creates another thread within the shared lib, can the newly-created thread interact with (call back