Re: linux

2003-02-06 Thread Weiqi Gao
ver, the capability of spawning threads is enough to solve a lot of problems. -- Weiqi Gao [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

RE: New to Java

2002-01-16 Thread Weiqi Gao
). -- Weiqi Gao [EMAIL PROTECTED] -Original Message- From: Ali Ghaharbeighi [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 9:10 PM To: [EMAIL PROTECTED] Subject: New to Java Hi, I am very new to Java and would like to learn this language. Using both windows and Linux

Re: Unix JNI library?

2001-10-05 Thread Weiqi Gao
ing the specific functions you are interested in. But I do have a Linux/Intel port of the Shared Stubs JNI Example from Sheng Liang's JNI book. This allows you to call almost any function in almost any shared objects (.so). -- Weiqi Gao [EMAIL PROTECTED] jnistb-1.0.tar.gz

RE: Linux - Java Open Files

2001-10-03 Thread Weiqi Gao
hat shouldn't take up a slot in the file handle table. (I haven't looked at the source code of the JDK, so someone please correct me if I'm wrong.) -- Weiqi Gao [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL

Re: Object sizes

2001-05-28 Thread Weiqi Gao
after allocation. The difference ought to be a good ballpark figure. -- Weiqi Gao [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: Object sizes

2001-05-28 Thread Weiqi Gao
after allocation, the difference ought to be a good ballpark figure. -- Weiqi Gao [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: JNI for linux

2001-04-10 Thread Weiqi Gao
On 09 Apr 2001 23:03:11 -0500, Weiqi Gao wrote: > > Try > javac -Djava.library.path=. JavaCallC Of course, it should have been "java -Djava.library.path=. JavaCallC". -- Weiqi Gao [EMAIL PROTECTED] --

Re: JNI for linux

2001-04-09 Thread Weiqi Gao
va:6) > at JavaCallC.main(JavaCallC.java:17) Try javac -Djava.library.path=. JavaCallC -- Weiqi Gao [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: [OT]: invoking methods two levels up the hierarchy?

2001-03-30 Thread Weiqi Gao
.doit() overrides the method of the same name in its super classes. > > Is there any way to work around this, apart from declaring B like this: > abstract class B { > void doit() { super.doit(); } > } > (this is not satisfactory, because you may want to force B subclasses to

Re: when does a method get compiled?

2001-03-16 Thread Weiqi Gao
ed. > Is this possible? The compiled code are not Java objects anymore, so they cannot be garbage collected. -- Weiqi Gao [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: How do you get to process list ?(ps auwwx in Java)

2000-11-21 Thread Weiqi Gao
Peter Pilgrim wrote: > > I am considering writing a JNI to the process list. > How do you do this in Linux/Unix? You open files in the "/proc" filesystem. (We are going around in circles now.) -- Weiqi G

Re: The best window manager for java????

2000-11-17 Thread Weiqi Gao
automatic update feature that makes upgrading a snap. > > Check out the helix code gnome distribution at > > http://www.helixcode.com/ Red Hat 6.2 + Helix Code Gnome (sawfish) works wonderfully for Java. -- Weiqi Gao [EMAIL PROTECTED] --

Re: Forte vs Emacs? Your opinions, experiences

2000-10-15 Thread Weiqi Gao
t to learn a new language. If you use Emacs, you can be sure that there will be a mode for that language. If you use Forte, you have to abandon ship and learn a new tool. I don't see anything wrong with Forte, though. In fact, I liked it. But my machine is too old (Pentium 200/64MB RAM

Re: Servlets...

2000-09-24 Thread Weiqi Gao
ee. It does not come with the source. However it comes with very detailed documentation. -- Weiqi Gao [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: Ambiguous class

2000-05-29 Thread Weiqi Gao
ql.Date) to describe > which one you want to use. > > Nathan You can also do something like the following: import java.util.*; import java.sql.*; import java.sql.Date; At the top of your class. This will cause all unqualified use of Date in your code to resolve to java.sql.Date. ==

Re: JVM INSTR pop;????????

2000-05-20 Thread Weiqi Gao
ands this sort of things. > When I compiler the attatched file, > the compiler complains that it does not support > "goto", so I decided to understand this small program that > I can rewrite it. Again, it

Re: JRE -and- JDK

2000-04-14 Thread Weiqi Gao
me spot, in which case you have a conflict.) -- Weiqi Gao [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: Java shell

2000-03-16 Thread Weiqi Gao
ake )) #kawa:2# (invoke f 'show) Although I'm sure the Beanshell is what the original poster wanted. -- Weiqi Gao [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: JNI & .so Files

2000-02-03 Thread Weiqi Gao
[EMAIL PROTECTED] wrote: > > jmethodID mid = (*gEnv)->GetMethodID(gEnv, cls, "callBack", "(V)V"); It's "()V" not "(V)V". It worked on my machine after the change. -- Weiqi Gao [EMAIL PROTECTED] ---

Re: JNI & .so Files

2000-02-02 Thread Weiqi Gao
(shared memories, message queues, semaphores). > A simple sample code will help a lot. A simple registration example: /* so2.c */ typedef void (*F)(); F so2_f; void so2_g(F _f){so2_f = _f;} void so2_h(){so2_f();} /* so1.c */ int i=0; void so1_x(){} void so1_y(){so2_g(so1_x); i=1;} void so1_z(){i &

Linux port of JNI Shared Stubs Examples

2000-01-29 Thread Weiqi Gao
atch_i386-pc-linux-gnu.s as if it were posted on a mailing list. -- Weiqi Gao [EMAIL PROTECTED] jnistb-1.0.tar.gz

libioser12.so

2000-01-24 Thread Weiqi Gao
the poster. Could the original poster (or anyone who has saved the file) email me the file again? Thanks in advance. -- Weiqi Gao [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe&quo

Re: [Q] CORBA: Any idltojava for linux??

2000-01-19 Thread Weiqi Gao
ers), so you have to change them back to the proper case by hand. I was crazy enough to do the above once, and it did work. But I've decided that it's easier to use a near by Windows 95 machine for the task. Maybe one could writ

Re: about Mozilla & blackdown's JVMPlugin[sorry post again]

2000-01-12 Thread Weiqi Gao
t; > Thanks for reading. > > From: [EMAIL PROTECTED] > Heeyeon Hwang According to Mozilla M12 Release Notes: + On Linux, Java is not yet implemented. -- Weiqi Gao [EMAIL PROTECTED] -- To UNSUBSCRIB

Nathan's Book

2000-01-09 Thread Weiqi Gao
The spirit of Linux shines through throughout. I'm buying it from Amazon.com, they are giving a $7.50 discount on this book. Thank Nathan you for such a wonderful book. And have fun updating it every year for the next five years. You are going to update it, aren't you? -- W

Sun JDK 1.2.2 RC2 for Linux

2000-01-06 Thread Weiqi Gao
nprise. What's the story? -- Weiqi Gao [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: Problem with JNI

2000-01-05 Thread Weiqi Gao
: Hello > > Does anybody know where is the error ? It sounds like you needed 'extern "C"' somewhere in your native code implementation file. Do a 'nm libNative.so' and make sure a function symbol 'Java_Native_Hello' is exported, not some C++

Re: Do you have any example showing us how to read a line. an interger, a float... from console?

1999-12-30 Thread Weiqi Gao
[EMAIL PROTECTED] wrote: > > Hello everybody, > > Have you got any example like that? It's because there are so many > classes in java.io that I don't know what to choose to do it. Get the Java I/O book from O'Reilly. It has examples that does that.

Re: Native vs. green threads

1999-12-07 Thread Weiqi Gao
e customer support issues > we receive at my day job for the product I work on, it seems that a > reasonable percentage of the people running Java servers out in the > commercial world are using SMP boxes. And how are they exploiting the SMP system with green threads? -- Weiqi Gao [EMAI

Re: Problems with JDB

1999-10-12 Thread Weiqi Gao
----- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- Weiqi Gao [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: Java and Linux

1999-10-11 Thread Weiqi Gao
third parties.) The only guarantee is that if your application is 100% pure, then it will run in any JVM, including the Blackdown JDK on Linux. -- Weiqi Gao [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: Class information in a static method

1999-10-07 Thread Weiqi Gao
he class, you can do a Class.forName(className). Each derivative class have to override this method if the obtained Class is used in some substantial way. -- Weiqi Gao [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTEC

Re: Problem making an instant of a class.

1999-10-03 Thread Weiqi Gao
But nothing happens. What am I missing? You have to click on the Button. -- Weiqi Gao [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: To find classes or to be Applet thats....

1999-10-02 Thread Weiqi Gao
LASSPATH $1 > > However, since I installed JDK 1.2-b-prev the script > > appletviewer $1 & > > does not function, and now I found out why. You did? -- Weiqi Gao [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: JDBC problem!

1999-09-30 Thread Weiqi Gao
x27;w', and the last 5 characters are NUL ('\0'). And that choked PostgreSQL! Remove the NUL characters from the String and everything will be fine. -- Weiqi Gao [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: Java and Enlightenment

1999-09-29 Thread Weiqi Gao
tend to drift a bit under various window managers, even though > there's explicit code in the application to save and restore > their position. Both Enlightenment and Windowmaker seem to have > this problem, but icewm, last time I chec

Re: IBM released an early jdk for linux

1999-06-11 Thread Weiqi Gao
HelloWorld IBM: java.lang.Object on strike! On a serious note, how will the IBM JVM impact the Blackdown port? -- Weiqi Gao [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: Problems with jdk1.2-pre v2

1999-06-04 Thread Weiqi Gao
m I doing something wrong? On my (stock) Red Hat 5.2 machine, the Menus are all italic. I also noticed some slow down in SwingSet. Most noticable is making an internal frame, with pre1, it's almost instantaneous, with pre2, it take up to 2 seconds. Otherwise all my apps compiled fine and ru

Re: JDK 1.2 and CORBA problem on hello example

1999-03-26 Thread Weiqi Gao
ok. > > I would like to know if i must use any options for java interpreter or > compiler (i have read the README.linux file and i have tried the options > suggested for the interpreter and the compiler), or if i must configure > jdk1.2 in a different way. I have exactly the same problem a

idltojava (Was Re: Where is swing.jar? And: Support for CORBA?)

1999-03-20 Thread Weiqi Gao
rnative is to compile the IDL on Solaris or NT. -- Weiqi Gao [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: Off-topic: OS/arch combinations

1999-01-17 Thread Weiqi Gao
others people could help me out with would be > great. os.name: Linux os.version: 2.2.5-15 os.arch: i386 -- Weiqi Gao [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]